mirror of https://github.com/gohugoio/hugo
23 lines
496 B
Plaintext
23 lines
496 B
Plaintext
# Test the hugo command.
|
|
env HUGO_ENVIRONMENT=development
|
|
|
|
hugo
|
|
grep 'myparam: dev§' public/index.html
|
|
|
|
hugo -e production
|
|
grep 'myparam: §' public/index.html
|
|
|
|
-- hugo.toml --
|
|
baseURL = "http://example.org/"
|
|
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
|
|
-- layouts/index.html --
|
|
myparam: {{ site.Params.myparam }}§
|
|
-- layouts/_default/single.html --
|
|
Title: {{ .Title }}
|
|
-- config/development/params.toml --
|
|
myparam = "dev"
|
|
-- content/p1.md --
|
|
---
|
|
title: "P1"
|
|
---
|