github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/testscripts/commands/hugo__flags.txt (about) 1 # Test the hugo command. 2 3 hugo --baseURL http://example.com/ --minify --destination ${WORK}/newpublic --clock 2021-11-06T22:30:00.00+09:00 -e staging --config ${WORK}/myconfig --configDir ${WORK}/myconfigdir -s mysource 4 stdout 'Pages.*|1' 5 stdout 'Total in' 6 grep 'Home: http://example.com/, Time: 2021-11-06' newpublic/index.html 7 grep 'Environment: staging, foo: bar, bar: baz' newpublic/index.html 8 # Verify that it's minified. 9 grep '<body>Home' newpublic/index.html 10 11 hugo --quiet 12 ! stdout . 13 14 -- hugo.toml -- 15 title = "Hugo Test" 16 -- myconfig.toml -- 17 baseURL = "http://example.org/" 18 disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] 19 [params] 20 foo = "bar" 21 -- myconfigdir/_default/params.toml -- 22 bar = "baz" 23 -- mysource/layouts/index.html -- 24 <body> 25 Home: {{ .Permalink }}, Time: {{ now }} 26 </body> 27 Environment: {{ hugo.Environment }}, foo: {{ .Site.Params.foo }}, bar: {{ .Site.Params.bar }} 28 -- mysource/layouts/_default/single.html -- 29 Title: {{ .Title }} 30 -- mysource/content/p1.md -- 31 --- 32 title: "P1" 33 ---