mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
20
testscripts/commands/hugo_build.txt
Normal file
20
testscripts/commands/hugo_build.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
# Test the hugo build command (alias for hugo)
|
||||
|
||||
hugo build
|
||||
stdout 'Pages.*|1'
|
||||
stdout 'Total in'
|
||||
checkfile public/index.html
|
||||
checkfile public/p1/index.html
|
||||
grep 'IsServer: false;IsProduction: true' public/index.html
|
||||
|
||||
-- hugo.toml --
|
||||
baseURL = "http://example.org/"
|
||||
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
|
||||
-- layouts/index.html --
|
||||
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
|
||||
-- layouts/_default/single.html --
|
||||
Title: {{ .Title }}
|
||||
-- content/p1.md --
|
||||
---
|
||||
title: "P1"
|
||||
---
|
Reference in New Issue
Block a user