hugo/testscripts/commands/hugo.txt
2023-05-24 12:42:56 +02:00

21 lines
448 B
Plaintext

# Test the hugo command.
hugo
stdout 'Pages.*|1'
stdout 'Total in'
checkfile public/index.html
checkfile public/p1/index.html
grep 'IsServer: false' public/index.html
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
Home|IsServer: {{ .Site.IsServer }}|
-- layouts/_default/single.html --
Title: {{ .Title }}
-- content/p1.md --
---
title: "P1"
---