github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/testscripts/commands/hugo_configdev_environment.txt (about) 1 # Test the hugo command. 2 env HUGO_ENVIRONMENT=development 3 4 hugo 5 grep 'myparam: dev§' public/index.html 6 7 hugo -e production 8 grep 'myparam: §' public/index.html 9 10 -- hugo.toml -- 11 baseURL = "http://example.org/" 12 disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] 13 -- layouts/index.html -- 14 myparam: {{ site.Params.myparam }}§ 15 -- layouts/_default/single.html -- 16 Title: {{ .Title }} 17 -- config/development/params.toml -- 18 myparam = "dev" 19 -- content/p1.md -- 20 --- 21 title: "P1" 22 ---