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