Debian Codegraph @

testscripts/commands/hugo__processingstats.txt

raw
1 cp $SOURCE/resources/testdata/pix.gif content/en/bundle1/pix.gif
2 cp $SOURCE/resources/testdata/pix.gif content/en/bundle2/pix.gif
3 cp $SOURCE/resources/testdata/pix.gif content/fr/bundle1/pix.gif
4 mkdir static/images
5 cp $SOURCE/resources/testdata/pix.gif static/images/p1.gif
6 cp $SOURCE/resources/testdata/pix.gif static/images/p2.gif
7 cp $SOURCE/resources/testdata/pix.gif static/images/p3.gif
8 cp $SOURCE/resources/testdata/pix.gif static/images/p4.gif
9
10
11 hugo
12
13 stdout 'Pages.*3.*2'
14 stdout 'Processed images.*2.*1'
15 stdout 'Static files.*4 |'
16
17 ls public/images
18 stdout 'p1.gif'
19 stdout 'p2.gif'
20 stdout 'p3.gif'
21 stdout 'p4.gif'
22
23 -- content/en/bundle1/index.md --
24 -- content/en/bundle2/index.md --
25 -- content/fr/bundle1/index.md --
26 -- hugo.toml --
27 disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404"]
28 defaultLanguage = "en"
29 defaultLanguageInSubdir = true
30 baseURL = "https://example.com/"
31 [languages]
32 [languages.en]
33 languageName = "English"
34 weight = 1
35 title = "English Title"
36 contentDir = "content/en"
37 [languages.fr]
38 languageName = "French"
39 weight = 2
40 title = "French Title"
41 contentDir = "content/fr"
42 -- layouts/home.html --
43 Home.
44 -- layouts/single.html --
45 Single.
46 {{ range .Resources }}
47 {{ $img := .Resize "3x" }}
48 Resized: {{ $img.RelPermalink }}
49 {{ end }}