server__multihost.txt - hugo - [fork] hugo port for 9front
HTML git clone https://git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
server__multihost.txt (763B)
---
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 --renderToMemory &
5
6 waitServer
7
8 httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0
9 httpget $HUGOTEST_BASEURL_1 'Title: Hugo Serveur Test' $HUGOTEST_BASEURL_1
10
11 stopServer
12 ! stderr .
13
14 -- hugo.toml --
15 title = "Hugo Server Test"
16 baseURL = "https://example.org/"
17 disableKinds = ["taxonomy", "term", "sitemap"]
18 [languages]
19 [languages.en]
20 baseURL = "https://en.example.org/"
21 languageName = "English"
22 title = "Hugo Server Test"
23 weight = 1
24 [languages.fr]
25 baseURL = "https://fr.example.org/"
26 title = "Hugo Serveur Test"
27 languageName = "Français"
28 weight = 2
29 -- layouts/index.html --
30 Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
31
32