github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/testscripts/commands/server_render_static_to_disk.txt (about) 1 # Test the hugo server command. 2 3 # We run these tests in parallel so let Hugo decide which port to use. 4 hugo server --renderStaticToDisk & 5 6 waitServer 7 8 httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0 9 httpget ${HUGOTEST_BASEURL_0}mystatic.txt 'This is a static file.' 10 11 ! exists public/index.html 12 exists public/mystatic.txt 13 14 stopServer 15 ! stderr . 16 17 -- hugo.toml -- 18 title = "Hugo Server Test" 19 baseURL = "https://example.org/" 20 disableKinds = ["taxonomy", "term", "sitemap"] 21 -- static/mystatic.txt -- 22 This is a static file. 23 -- layouts/index.html -- 24 Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}| 25 26