mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
commands: Load config before creating the filesystem
To allow publishDir to be set in config file.
This commit is contained in:
12
testscripts/commands/hugo__publishdir_in_config.txt
Normal file
12
testscripts/commands/hugo__publishdir_in_config.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
# Test the hugo command.
|
||||
|
||||
hugo
|
||||
|
||||
grep 'Home' newpublic/index.html
|
||||
|
||||
-- hugo.toml --
|
||||
baseURL = "http://example.org/"
|
||||
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
|
||||
publishDir = "newpublic"
|
||||
-- layouts/index.html --
|
||||
Home.
|
Reference in New Issue
Block a user