mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-12 13:26:25 -05:00
231374a1fa
Fixes #11013
20 lines
506 B
Text
20 lines
506 B
Text
# Test the hugo command.
|
|
|
|
hugo
|
|
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: {{ .Site.IsServer }};IsProduction: {{ hugo.IsProduction }}|
|
|
-- layouts/_default/single.html --
|
|
Title: {{ .Title }}
|
|
-- content/p1.md --
|
|
---
|
|
title: "P1"
|
|
---
|