From 72bba2c30e044021ee49c120ace9ec68df7194cd Mon Sep 17 00:00:00 2001 From: loikein Date: Mon, 1 May 2023 17:57:00 +0100 Subject: [PATCH] build draft for example site --- exampleSite/config.yaml | 2 +- exampleSite/content/_index.md | 4 +--- exampleSite/content/{exampleBook => a-book}/_index.md | 0 exampleSite/content/{exampleBook => a-book}/vol-1/_index.md | 0 .../content/{exampleBook => a-book}/vol-1/vol-1-ch-1.md | 0 .../content/{exampleBook => a-book}/vol-1/vol-1-ch-2.md | 0 exampleSite/content/{exampleBook => a-book}/vol-2/_index.md | 0 .../content/{exampleBook => a-book}/vol-2/vol-2-ch-1.md | 0 .../content/{exampleBook => a-book}/vol-2/vol-2-ch-2.md | 0 .../content/{exampleBook => a-book}/vol-2/vol-2-ch-3.md | 0 netlify.toml | 2 +- 11 files changed, 3 insertions(+), 5 deletions(-) rename exampleSite/content/{exampleBook => a-book}/_index.md (100%) rename exampleSite/content/{exampleBook => a-book}/vol-1/_index.md (100%) rename exampleSite/content/{exampleBook => a-book}/vol-1/vol-1-ch-1.md (100%) rename exampleSite/content/{exampleBook => a-book}/vol-1/vol-1-ch-2.md (100%) rename exampleSite/content/{exampleBook => a-book}/vol-2/_index.md (100%) rename exampleSite/content/{exampleBook => a-book}/vol-2/vol-2-ch-1.md (100%) rename exampleSite/content/{exampleBook => a-book}/vol-2/vol-2-ch-2.md (100%) rename exampleSite/content/{exampleBook => a-book}/vol-2/vol-2-ch-3.md (100%) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 888b047..7674c74 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -83,7 +83,7 @@ menu: - name: A-Book weight: -95 identifier: book - url: /exampleBook/ + url: /a-book/ - name: Categories weight: -90 identifier: categories diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index a97501c..c315938 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,6 +1,4 @@ --- title: Home --- -You can write more stuff here, for example: - -Welcome! +In actual sites, drafts will not be built (unless you choose to). diff --git a/exampleSite/content/exampleBook/_index.md b/exampleSite/content/a-book/_index.md similarity index 100% rename from exampleSite/content/exampleBook/_index.md rename to exampleSite/content/a-book/_index.md diff --git a/exampleSite/content/exampleBook/vol-1/_index.md b/exampleSite/content/a-book/vol-1/_index.md similarity index 100% rename from exampleSite/content/exampleBook/vol-1/_index.md rename to exampleSite/content/a-book/vol-1/_index.md diff --git a/exampleSite/content/exampleBook/vol-1/vol-1-ch-1.md b/exampleSite/content/a-book/vol-1/vol-1-ch-1.md similarity index 100% rename from exampleSite/content/exampleBook/vol-1/vol-1-ch-1.md rename to exampleSite/content/a-book/vol-1/vol-1-ch-1.md diff --git a/exampleSite/content/exampleBook/vol-1/vol-1-ch-2.md b/exampleSite/content/a-book/vol-1/vol-1-ch-2.md similarity index 100% rename from exampleSite/content/exampleBook/vol-1/vol-1-ch-2.md rename to exampleSite/content/a-book/vol-1/vol-1-ch-2.md diff --git a/exampleSite/content/exampleBook/vol-2/_index.md b/exampleSite/content/a-book/vol-2/_index.md similarity index 100% rename from exampleSite/content/exampleBook/vol-2/_index.md rename to exampleSite/content/a-book/vol-2/_index.md diff --git a/exampleSite/content/exampleBook/vol-2/vol-2-ch-1.md b/exampleSite/content/a-book/vol-2/vol-2-ch-1.md similarity index 100% rename from exampleSite/content/exampleBook/vol-2/vol-2-ch-1.md rename to exampleSite/content/a-book/vol-2/vol-2-ch-1.md diff --git a/exampleSite/content/exampleBook/vol-2/vol-2-ch-2.md b/exampleSite/content/a-book/vol-2/vol-2-ch-2.md similarity index 100% rename from exampleSite/content/exampleBook/vol-2/vol-2-ch-2.md rename to exampleSite/content/a-book/vol-2/vol-2-ch-2.md diff --git a/exampleSite/content/exampleBook/vol-2/vol-2-ch-3.md b/exampleSite/content/a-book/vol-2/vol-2-ch-3.md similarity index 100% rename from exampleSite/content/exampleBook/vol-2/vol-2-ch-3.md rename to exampleSite/content/a-book/vol-2/vol-2-ch-3.md diff --git a/netlify.toml b/netlify.toml index ccf8a0e..59fe139 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build] -command = "cd exampleSite && hugo --minify --gc --themesDir .. --theme ." +command = "cd exampleSite && hugo --buildDrafts --minify --gc --themesDir .. --theme ." publish = "exampleSite/public" [build.environment]