build draft for example site

This commit is contained in:
loikein 2023-05-01 17:57:00 +01:00
parent 02788d2fe5
commit 72bba2c30e
11 changed files with 3 additions and 5 deletions

View file

@ -83,7 +83,7 @@ menu:
- name: A-Book
weight: -95
identifier: book
url: /exampleBook/
url: /a-book/
- name: Categories
weight: -90
identifier: categories

View file

@ -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).

View file

@ -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]