/
githubmirror
/
hugo
Обзор
Документация
Войти
/
githubmirror
/
hugo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testscripts/server/server_render_to_memory.txt
24 строки
594 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. # We run these tests in parallel so let Hugo decide which port to use. # Deliberately using the alias 'serve' here. hugo serve --renderToMemory & waitServer httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0 ! exists public/index.html ! exists public/mystatic.txt stopServer ! stderr . -- hugo.toml -- title = "Hugo Server Test" baseURL = "https://example.org/" disableKinds = ["taxonomy", "term", "sitemap"] -- static/mystatic.txt -- This is a static file. -- layouts/home.html -- Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|