Debian Codegraph @

testscripts/server/server__error_recovery_edit_content.txt

raw
1 # Test the hugo server command when adding a front matter error to a content file
2 # and then fixing it.
3
4 hugo server &
5
6 waitServer
7
8 httpget ${HUGOTEST_BASEURL_0}p1/ 'Title: P1'
9
10 replace $WORK/content/p1/index.md 'title:' 'titlecolon'
11 httpget ${HUGOTEST_BASEURL_0}p1/ 'Error'
12
13 replace $WORK/content/p1/index.md 'titlecolon' 'title:'
14 httpget ${HUGOTEST_BASEURL_0}p1/ 'Title: P1'
15
16 stopServer
17
18 -- hugo.toml --
19 title = "Hugo Server Test"
20 baseURL = "https://example.org/"
21 disableKinds = ["taxonomy", "term", "sitemap"]
22 -- layouts/home.html --
23 Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
24 -- layouts/single.html --
25 Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
26 -- content/_index.md --
27 ---
28 title: Hugo Home
29 ---
30 -- content/p1/index.md --
31 ---
32 title: P1
33 ---
34 -- content/p2/index.md --
35 ---
36 title: P2
37 ---
38 -- static/staticfiles/static.txt --
39 static
40
41
42