| 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/home.html -- |
| 14 |
myparam: {{ site.Params.myparam }}§ |
| 15 |
-- layouts/single.html -- |
| 16 |
Title: {{ .Title }} |
| 17 |
-- config/development/params.toml -- |
| 18 |
myparam = "dev" |
| 19 |
-- content/p1.md -- |
| 20 |
--- |
| 21 |
title: "P1" |
| 22 |
--- |