-- hugo.toml --
baseURL = "https://example.com/"
disableKinds = ["taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
Deprecate:
{{ if eq hugo.Environment "info" }}
{{ debug.TestDeprecationInfo "item" "alternative" }}
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}
-- content/p1.md --
---
-- content/p1.md --
-- content/p2.md --
-- content/p3.md --
--- layouts/index.html --
+-- layouts/home.html --
Home.
--- layouts/_default/single.html --
+-- layouts/single.html --
{{ $css := resources.Get "css/styles.css" }}
{{ $css := $css | minify | fingerprint | resources.PostProcess }}
CSS: {{ $css.RelPermalink }}
---
url: /p1/
---
--- layouts/index.html --
+-- layouts/home.html --
Home.
--- layouts/_default/single.html --
+-- layouts/single.html --
Single.
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
-- assets/foo.txt --
foo
--- layouts/index.html --
+-- layouts/home.html --
A: {{ (resources.Get "foo.txt").RelPermalink }}
B: {{ (resources.GetMatch "foo.txt").RelPermalink }}
C: {{ (index (resources.Match "foo.txt") 0).RelPermalink }}
weight = 2
title = "French Title"
contentDir = "content/fr"
--- layouts/index.html --
+-- layouts/home.html --
Home.
--- layouts/_default/single.html --
+-- layouts/single.html --
Single.
{{ range .Resources }}
{{ $img := .Resize "3x" }}
-- content/posts/post-1/index.md --
-- hugo.toml --
baseURL = "https://example.com/"
--- layouts/_default/list.html --
+-- layouts/list.html --
List.
--- layouts/_default/single.html --
+-- layouts/single.html --
Single.
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
publishDir = "newpublic"
--- layouts/index.html --
+-- layouts/home.html --
Home.
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
Home.
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}| {{ .Content }}
-- content/p1.md --
---
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}
-- content/p1.md --
---
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
myparam: {{ site.Params.myparam }}§
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}
-- config/development/params.toml --
myparam = "dev"
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
myparam: {{ site.Params.myparam }}§
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}
-- config/development/params.toml --
myparam = "dev"
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
myparam: {{ site.Params.myparam }}§
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}
-- config/development/params.toml --
myparam = "dev"
-- hugo.toml --
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section"]
baseURL = "https://example.org/"
--- layouts/_default/single.html --
+-- layouts/single.html --
Single.
--- layouts/index.html --
+-- layouts/home.html --
Home.
-- content/p1.md --
---
-- hugo.toml --
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section", "page"]
baseURL = "https://example.org/"
--- layouts/index.html --
+-- layouts/home.html --
Home.
--- layouts/_default/list.html --
+-- layouts/list.html --
{{ errorf "unused template: %s" .Kind }}
myenv = "theproduction"
-- config/development/params.toml --
myenv = "thedevelopment"
--- layouts/index.html --
+-- layouts/home.html --
<!DOCTYPE html>
<body>
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ hugo.IsServer }}|
title = "Hugo Nynorsk Server Test"
weight = 2
--- layouts/index.html --
+-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ .Permalink }}|
title = "Hugo Server Test"
baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term", "sitemap"]
--- layouts/index.html --
+-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- content/_index.md --
---
title = "Hugo Server Test"
baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term", "sitemap"]
--- layouts/index.html --
+-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- content/_index.md --
---
title = "Hugo Server Test"
baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term", "sitemap"]
--- layouts/index.html --
+-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
--- layouts/_default/single.html --
+-- layouts/single.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- content/_index.md --
---
title = "Hugo Serveur Test"
languageName = "Français"
weight = 2
--- layouts/index.html --
+-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- static/en/mystatic/mytext.txt --
en_mytext
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"
--- layouts/index.html --
+-- layouts/home.html --
<body>Home</body>
baseURL = "https://example.org/"
disableKinds = ["section", "page", "taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404"]
theme = "mytheme"
--- layouts/index.html --
+-- layouts/home.html --
foo: {{ .Site.Params.foo }}
-- themes/mytheme/hugo.toml --
[params]
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
<html>
<head>
</head>
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
disableLiveReload = true
--- layouts/index.html --
+-- layouts/home.html --
<html>
<head>
</head>
This is a static file in English.
-- static/en/mystatic.txt --
This is a static file in English.
--- layouts/index.html --
+-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
disableKinds = ["taxonomy", "term", "sitemap"]
-- static/mystatic.txt --
This is a static file.
--- layouts/index.html --
+-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "page", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
--- layouts/index.html --
+-- layouts/home.html --
Home
{{ warnf "This is a warning" }}