/
githubmirror
/
hugo
Обзор
Документация
Войти
/
githubmirror
/
hugo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testscripts/server/server__error_recovery_edit_content.txt
39 строк
844 B
Bjørn Erik Pedersen
testscripts: Move server tests to own folder
27 янв 2026, 20:27
27 янв 2026, 20:27
00c4228
Код
Авторство
О чём код?
# Test the hugo server command when adding a front matter error to a content file # and then fixing it. hugo server & waitServer httpget ${HUGOTEST_BASEURL_0}p1/ 'Title: P1' replace $WORK/content/p1/index.md 'title:' 'titlecolon' httpget ${HUGOTEST_BASEURL_0}p1/ 'Error' replace $WORK/content/p1/index.md 'titlecolon' 'title:' httpget ${HUGOTEST_BASEURL_0}p1/ 'Title: P1' stopServer -- hugo.toml -- title = "Hugo Server Test" baseURL = "https://example.org/" disableKinds = ["taxonomy", "term", "sitemap"] -- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| -- layouts/single.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| -- content/_index.md -- --- title: Hugo Home --- -- content/p1/index.md -- --- title: P1 --- -- content/p2/index.md -- --- title: P2 --- -- static/staticfiles/static.txt -- static