2023-01-04 12:24:36 -05:00
|
|
|
# Test the hugo command.
|
|
|
|
|
|
|
|
hugo
|
|
|
|
stdout 'Pages.*|1'
|
|
|
|
stdout 'Total in'
|
|
|
|
checkfile public/index.html
|
|
|
|
checkfile public/p1/index.html
|
2023-05-24 09:53:49 -04:00
|
|
|
grep 'IsServer: false;IsProduction: true' public/index.html
|
2023-01-04 12:24:36 -05:00
|
|
|
|
|
|
|
-- hugo.toml --
|
|
|
|
baseURL = "http://example.org/"
|
|
|
|
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
|
|
|
|
-- layouts/index.html --
|
2024-08-05 13:14:07 -04:00
|
|
|
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
|
2023-01-04 12:24:36 -05:00
|
|
|
-- layouts/_default/single.html --
|
|
|
|
Title: {{ .Title }}
|
|
|
|
-- content/p1.md --
|
|
|
|
---
|
|
|
|
title: "P1"
|
|
|
|
---
|