/
githubmirror
/
hugo
Обзор
Документация
Войти
/
githubmirror
/
hugo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testscripts/commands/hugo__processingstats.txt
49 строк
1 KB
Bjørn Erik Pedersen
testscripts: Move layouts file to new structure
27 ноя 2025, 22:41
Не верифицирован
27 ноя 2025, 22:41
45b67f6
Код
Авторство
О чём код?
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/home.html -- Home. -- layouts/single.html -- Single. {{ range .Resources }} {{ $img := .Resize "3x" }} Resized: {{ $img.RelPermalink }} {{ end }}