From afc1f095745a548ff400f187d53bc1570f02bcf2 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Sat, 13 Sep 2025 11:50:38 +0200 Subject: RSS full content, index renamed to home, fix text bugs --- layouts/_default/home.html | 24 ++++++++++++++++++++++++ layouts/index.html | 25 ------------------------- layouts/rss.xml | 14 +++++++------- layouts/tags/list.html | 4 ++-- layouts/tags/term.html | 2 +- 5 files changed, 34 insertions(+), 35 deletions(-) create mode 100644 layouts/_default/home.html delete mode 100644 layouts/index.html (limited to 'layouts') diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..031e3b5 --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,24 @@ +{{- define "main" }} +
+
+

+ {{ with .Title }}{{ . }}{{ else }}{{ site.Title | default "Welcome to my Blog!" }}{{ end }} +

+ {{- with site.Params.author.portrait }} + {{ . }} + {{- end }} + {{- with .Content }} +
+ {{ . }} +
+ {{- end }} +
+ + {{- partial "list/recent-posts.html" (dict + "count" 5 + "title" (lang.Translate "posts.recent" | default "Recent Articles") + "show_view_all" true + ) + -}} +
+{{- end }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 85558ad..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,25 +0,0 @@ -{{- /* HOMEPAGE */ -}} -{{- define "main" }} -
-
-

- {{ with .Title }}{{ . }}{{ else }}{{ site.Title | default "Welcome to my Blog!" }}{{ end }} -

- {{- with site.Params.author.portrait }} - {{ . }} - {{- end }} - {{- with .Content }} -
- {{ . }} -
- {{- end }} -
- - {{- partial "list/recent-posts.html" (dict - "count" 5 - "title" (lang.Translate "posts.recent" | default "Recent Articles") - "show_view_all" true - ) - -}} -
-{{- end }} diff --git a/layouts/rss.xml b/layouts/rss.xml index 4baaa59..9f70eb5 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -37,11 +37,11 @@ {{ .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 }} + {{ site.Language.LanguageCode }} + {{- with $authorName }}{{ . }}{{ end }} + {{- with $authorName }}{{ . }}{{ 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 }} @@ -50,9 +50,9 @@ {{ .Title }} {{ .Permalink }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{- with $authorName }}{{ . }}{{ end }} {{ .Permalink }} - {{ .Summary | transform.XMLEscape | safeHTML }} + {{ .Content | transform.XMLEscape | safeHTML }} {{- end }} diff --git a/layouts/tags/list.html b/layouts/tags/list.html index bfe9479..651f427 100644 --- a/layouts/tags/list.html +++ b/layouts/tags/list.html @@ -3,10 +3,10 @@

- {{ lang.Translate "tags.all" | default "All Tags" }} + {{ lang.Translate "tags.all_title" | default "All Tags" }}

- {{ lang.Translate "tags.overview_all" | default "Overview of all topics covered on this site." }} + {{ lang.Translate "tags.all_description" | default "Overview of all topics covered on this site." }}

diff --git a/layouts/tags/term.html b/layouts/tags/term.html index bbdc0bf..11dffa2 100644 --- a/layouts/tags/term.html +++ b/layouts/tags/term.html @@ -34,7 +34,7 @@ -- cgit v1.2.3