mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 04:41:19 +00:00
19 lines
402 B
Text
19 lines
402 B
Text
|
# Test the hugo command.
|
||
|
|
||
|
hugo
|
||
|
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"
|
||
|
---
|