aboutsummaryrefslogtreecommitdiffhomepage
path: root/testscripts/commands/hugo_configdev_environment.txt
blob: 037148178c963be374a8978b874d05925db967c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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"
---