Debian Codegraph @

testscripts/commands/hugo_build.txt

raw
1 # Test the hugo build command (alias for hugo)
2
3 hugo build
4 stdout 'Pages.*|1'
5 stdout 'Total in'
6 checkfile public/index.html
7 checkfile public/p1/index.html
8 grep 'IsServer: false;IsProduction: true' public/index.html
9
10 -- hugo.toml --
11 baseURL = "http://example.org/"
12 disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
13 -- layouts/home.html --
14 Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
15 -- layouts/single.html --
16 Title: {{ .Title }}
17 -- content/p1.md --
18 ---
19 title: "P1"
20 ---