2023-01-04 17:24:36 +00:00
|
|
|
# Test the hugo command.
|
|
|
|
|
|
|
|
# See https://github.com/rogpeppe/go-internal/issues/228
|
|
|
|
[windows] skip
|
|
|
|
|
|
|
|
hugo -w &
|
|
|
|
|
|
|
|
sleep 3
|
|
|
|
grep 'P1start' public/p1/index.html
|
|
|
|
|
|
|
|
replace content/p1.md 'P1start' 'P1end'
|
|
|
|
sleep 2
|
|
|
|
grep 'P1end' public/p1/index.html
|
2023-06-02 05:49:42 +00:00
|
|
|
! grep 'livereload' public/p1/index.html
|
2023-01-04 17:24:36 +00:00
|
|
|
|
|
|
|
stop
|
|
|
|
|
|
|
|
-- hugo.toml --
|
|
|
|
baseURL = "http://example.org/"
|
|
|
|
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
|
|
|
|
-- layouts/index.html --
|
|
|
|
Home.
|
|
|
|
-- layouts/_default/single.html --
|
|
|
|
Title: {{ .Title }}| {{ .Content }}
|
|
|
|
-- content/p1.md --
|
|
|
|
---
|
|
|
|
title: "P1"
|
|
|
|
---
|
|
|
|
P1start
|