| 1 |
# Test the hugo command. |
| 2 |
|
| 3 |
# See https://github.com/rogpeppe/go-internal/issues/228 |
| 4 |
[windows] skip |
| 5 |
|
| 6 |
hugo -w & |
| 7 |
|
| 8 |
sleep 3 |
| 9 |
grep 'P1start' public/p1/index.html |
| 10 |
|
| 11 |
replace content/p1.md 'P1start' 'P1end' |
| 12 |
sleep 2 |
| 13 |
grep 'P1end' public/p1/index.html |
| 14 |
! grep 'livereload' public/p1/index.html |
| 15 |
|
| 16 |
stop |
| 17 |
|
| 18 |
-- hugo.toml -- |
| 19 |
baseURL = "http://example.org/" |
| 20 |
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"] |
| 21 |
-- layouts/home.html -- |
| 22 |
Home. |
| 23 |
-- layouts/single.html -- |
| 24 |
Title: {{ .Title }}| {{ .Content }} |
| 25 |
-- content/p1.md -- |
| 26 |
--- |
| 27 |
title: "P1" |
| 28 |
--- |
| 29 |
P1start |