github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/testscripts/commands/server_render_to_memory.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  # Deliberately using the alias 'serve' here.
     5  hugo serve &
     6  
     7  waitServer
     8  
     9  httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0
    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