diff --git a/content/fotos/ustronie-morskie/index.md b/content/fotos/ustronie-morskie/index.md index 87c2ac6..8e67ad0 100644 --- a/content/fotos/ustronie-morskie/index.md +++ b/content/fotos/ustronie-morskie/index.md @@ -5,6 +5,14 @@ date: 2025-11-15T21:53:01+01:00 tags: [fotos, polen] --- +{{< figure +src="holzwall.jpeg" +alt="Holzwall" +caption="Holzwall" +fetchpriority="high" + +> }} + ![Holzwall](./holzwall.jpeg "Holzwall") {fetchpriority="high"} diff --git a/hugo.toml b/hugo.toml index e790831..c866ab6 100644 --- a/hugo.toml +++ b/hugo.toml @@ -10,17 +10,14 @@ name = "Jan Kremer" email = "mail@jankremer.eu" [menus] - [[menus.main]] name = "Blog" pageRef = "/" weight = 1 - [[menus.main]] name = "Fotos" pageRef = "/fotos" weight = 2 - [[menus.main]] name = "Über mich" pageRef = "/about" @@ -36,3 +33,18 @@ wrapStandAloneImageWithinParagraph = false block = true [markup.highlight] style = "github" + +[mediaTypes] +[mediaTypes.'application/atom+xml'] +suffixes = ['atom'] + +[outputFormats] +[outputFormats.atom] +mediaType = 'application/atom+xml' +noUgly = true + +[outputs] +home = ['html', 'rss', 'atom'] +section = ['html', 'rss', 'atom'] +taxonomy = ['html', 'rss', 'atom'] +term = ['html', 'rss', 'atom'] diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml deleted file mode 100644 index 9ddc039..0000000 --- a/layouts/_default/rss.xml +++ /dev/null @@ -1,43 +0,0 @@ -{{- $pctx := . -}} -{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} -{{- $pages := slice -}} -{{- if or $.IsHome $.IsSection -}} -{{- $pages = $pctx.RegularPages -}} -{{- else -}} -{{- $pages = $pctx.Pages -}} -{{- end -}} -{{- $limit := .Site.Config.Services.RSS.Limit -}} -{{- if ge $limit 1 -}} -{{- $pages = $pages | first $limit -}} -{{- end -}} -{{- printf "" | safeHTML }} - - - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io - {{ site.Language.LanguageCode }}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "2006-01-02 15:04" | safeHTML }}{{ end }} - {{- with .OutputFormats.Get "RSS" -}} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{- end -}} - {{ range $pages }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - - <strong>{{ .Description | transform.XMLEscape | safeHTML }}</strong> - - {{ .Content | transform.XMLEscape | safeHTML }} - - - {{ end }} - - diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html deleted file mode 100644 index e41a6b7..0000000 --- a/layouts/_markup/render-image.html +++ /dev/null @@ -1,40 +0,0 @@ -{{- $u := urls.Parse .Destination -}} -{{- $src := $u.String -}} -{{- if not $u.IsAbs -}} - {{- $path := strings.TrimPrefix "./" $u.Path -}} - {{- with or (.PageInner.Resources.Get $path) (resources.Get $path) -}} - {{- $src = .RelPermalink -}} - {{- with $u.RawQuery -}} - {{- $src = printf "%s?%s" $src . -}} - {{- end -}} - {{- with $u.Fragment -}} - {{- $src = printf "%s#%s" $src . -}} - {{- end -}} - {{- end -}} -{{- end -}} -{{- if .IsBlock -}} -
- - {{- with .Title }}
{{ . }}
{{ end -}} -
-{{- else -}} - {{ .PlainText }} -{{- end -}} -{{- /**/ -}} diff --git a/layouts/partials/cc.svg b/layouts/_partials/cc.svg similarity index 100% rename from layouts/partials/cc.svg rename to layouts/_partials/cc.svg diff --git a/layouts/partials/footer.html b/layouts/_partials/footer.html similarity index 100% rename from layouts/partials/footer.html rename to layouts/_partials/footer.html diff --git a/layouts/partials/git.svg b/layouts/_partials/git.svg similarity index 100% rename from layouts/partials/git.svg rename to layouts/_partials/git.svg diff --git a/layouts/partials/head.html b/layouts/_partials/head.html similarity index 100% rename from layouts/partials/head.html rename to layouts/_partials/head.html diff --git a/layouts/partials/head/css.html b/layouts/_partials/head/css.html similarity index 100% rename from layouts/partials/head/css.html rename to layouts/_partials/head/css.html diff --git a/layouts/partials/head/js.html b/layouts/_partials/head/js.html similarity index 100% rename from layouts/partials/head/js.html rename to layouts/_partials/head/js.html diff --git a/layouts/partials/header.html b/layouts/_partials/header.html similarity index 100% rename from layouts/partials/header.html rename to layouts/_partials/header.html diff --git a/layouts/partials/logo.svg b/layouts/_partials/logo.svg similarity index 100% rename from layouts/partials/logo.svg rename to layouts/_partials/logo.svg diff --git a/layouts/partials/menu.html b/layouts/_partials/menu.html similarity index 100% rename from layouts/partials/menu.html rename to layouts/_partials/menu.html diff --git a/layouts/partials/terms.html b/layouts/_partials/terms.html similarity index 100% rename from layouts/partials/terms.html rename to layouts/_partials/terms.html diff --git a/layouts/partials/zero.svg b/layouts/_partials/zero.svg similarity index 100% rename from layouts/partials/zero.svg rename to layouts/_partials/zero.svg diff --git a/layouts/_default/baseof.html b/layouts/baseof.html similarity index 100% rename from layouts/_default/baseof.html rename to layouts/baseof.html diff --git a/layouts/_default/home.html b/layouts/home.html similarity index 100% rename from layouts/_default/home.html rename to layouts/home.html diff --git a/layouts/list.atom.atom b/layouts/list.atom.atom new file mode 100644 index 0000000..1085f74 --- /dev/null +++ b/layouts/list.atom.atom @@ -0,0 +1,60 @@ +{{- $authorEmail := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .email }} + {{- $authorEmail = . }} + {{- end }} + {{- end }} +{{- end }} + +{{- $authorName := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .name }} + {{- $authorName = . }} + {{- end }} + {{- else }} + {{- $authorName = . }} + {{- end }} +{{- end }} + +{{- $pctx := . }} +{{- if .IsHome }}{{ $pctx = .Site }}{{ end }} +{{- $pages := slice }} +{{- if or $.IsHome $.IsSection }} +{{- $pages = $pctx.RegularPages }} +{{- else }} +{{- $pages = $pctx.Pages }} +{{- end }} +{{- $limit := .Site.Config.Services.RSS.Limit }} +{{- if ge $limit 1 }} +{{- $pages = $pages | first $limit }} +{{- end }} + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} + + + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ .Permalink }} + + {{ with $authorName }}{{ . }}{{ end }} + {{ with $authorEmail }}{{ . }}{{ end }} + + Hugo + {{- range $pages }} + + {{ .Title }} + + {{ .Permalink }} + + {{ with $authorName }}{{ . }}{{ end }} + {{ with $authorEmail }}{{ . }}{{ end }} + + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + + {{ .Content | transform.XMLEscape | safeHTML }} + + + {{- end }} + diff --git a/layouts/_default/list.html b/layouts/list.html similarity index 100% rename from layouts/_default/list.html rename to layouts/list.html diff --git a/layouts/list.rss.xml b/layouts/list.rss.xml new file mode 100644 index 0000000..3860ac1 --- /dev/null +++ b/layouts/list.rss.xml @@ -0,0 +1,63 @@ +{{- $authorEmail := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .email }} + {{- $authorEmail = . }} + {{- end }} + {{- end }} +{{- end }} + +{{- $authorName := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .name }} + {{- $authorName = . }} + {{- end }} + {{- else }} + {{- $authorName = . }} + {{- end }} +{{- end }} + +{{- $pctx := . }} +{{- if .IsHome }}{{ $pctx = .Site }}{{ end }} +{{- $pages := slice }} +{{- if or $.IsHome $.IsSection }} +{{- $pages = $pctx.RegularPages }} +{{- else }} +{{- $pages = $pctx.Pages }} +{{- end }} +{{- $limit := .Site.Config.Services.RSS.Limit }} +{{- if ge $limit 1 }} +{{- $pages = $pages | first $limit }} +{{- end }} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo + {{ site.Language.LanguageCode }}{{ with $authorEmail }} + {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} + {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} + {{ . }}{{ end }}{{ if not .Date.IsZero }} + {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end }} + {{- range $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{ .Permalink }} + + <strong>{{ .Description | transform.XMLEscape | safeHTML }}</strong> + + {{ .Content | transform.XMLEscape | safeHTML }} + + + {{- end }} + + diff --git a/layouts/_default/single.html b/layouts/single.html similarity index 100% rename from layouts/_default/single.html rename to layouts/single.html