summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Rief <riearn@proton.me>2025-09-13 11:50:38 +0200
committerArne Rief <riearn@proton.me>2025-09-13 11:50:38 +0200
commitafc1f095745a548ff400f187d53bc1570f02bcf2 (patch)
tree00cc286e358c2dfcb5d868d64cd7fef5428ad625
parentbc503590943804838a98e35c705a89667e5b0758 (diff)
RSS full content, index renamed to home, fix text bugs
-rw-r--r--README.md2
-rw-r--r--assets/js/main.js2
-rw-r--r--i18n/de.toml4
-rw-r--r--i18n/en.toml4
-rw-r--r--layouts/_default/home.html (renamed from layouts/index.html)1
-rw-r--r--layouts/rss.xml14
-rw-r--r--layouts/tags/list.html4
-rw-r--r--layouts/tags/term.html2
8 files changed, 16 insertions, 17 deletions
diff --git a/README.md b/README.md
index e12f415..b6c3f03 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ Editing the theme is simple: you only have to recreate the path and file that yo
Here are three examples how to edit different aspects of the theme:
### Editing the Styling
-Let's say you want to make changes to the stylesheet: in your project, create `assets/css/main.css`, then simply add the CSS rules you would like to have. They will be merge with the theme's stylesheet in the final build and be added to or overwrite the theme's styling rules.
+Let's say you want to make changes to the stylesheet: in your project, create `assets/css/main.css`, then copy the CSS rules from the theme's stylesheet and add new rules or edit the existing ones for the changes you would like to have.
### Editing the HTML
You would like to display information like reading time and word count for each post. For this you will have to create `layouts/_default/single.html` in your project, then copy the content of the corresponding file from the theme into your own file and add the HTML and Go code for displaying this information. A block for displaying reading time and word count is already implemented in `layouts/partials/list/post-card.html`, here you would have to re-create these directories and this file in your project and simply remove the comment around the block.
diff --git a/assets/js/main.js b/assets/js/main.js
index 6ba0f19..6eba32b 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -73,7 +73,7 @@
const link = li.querySelector(".post-card__link");
link.href = post.url;
- link.tile = post.title;
+ link.innerHTML = post.title;
const date = li.querySelector(".post-card__publish-date");
date.textContent = new Date(post.date).toLocaleDateString();
diff --git a/i18n/de.toml b/i18n/de.toml
index fd13734..84f1a47 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -40,12 +40,12 @@
title = "Suche"
[tags]
- all = "Alle Schlagwörter"
+ all_title = "Alle Schlagwörter"
+ all_description= "Übersicht aller Themen auf dieser Webseite:"
empty = "Keine Schlagwörter gefunden."
name = "Schlagwörter"
navigation = "Schlagwörter Navigation"
no_posts = "Keine Artikel mit diesem Schlagwort gefunden."
- overview_all = "Übersicht aller Themen auf dieser Webseite:"
postcount_number = "{{ . }} Artikel gefunden"
postcount_title = "Anzahl der Artikel"
posts_list = "Artikel mit diesem Schlagwort:"
diff --git a/i18n/en.toml b/i18n/en.toml
index dc49095..fad6db0 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -40,12 +40,12 @@
title = "Search"
[tags]
- all = "All tags"
+ all_title = "All tags"
+ all_description = "Overview of all topics covered on this site:"
empty = "No tags found."
name = "Tags"
navigation = "Tag navigation"
no_posts = "No posts found with this tag."
- overview_all = "Overview of all topics covered on this site:"
postcount_number = "{{ . }} posts found"
postcount_title = "Number of posts"
posts_list = "Posts with this tag:"
diff --git a/layouts/index.html b/layouts/_default/home.html
index 85558ad..031e3b5 100644
--- a/layouts/index.html
+++ b/layouts/_default/home.html
@@ -1,4 +1,3 @@
-{{- /* HOMEPAGE */ -}}
{{- define "main" }}
<div class="homepage">
<header class="homepage__header">
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 @@
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo</generator>
- <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
- <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
- <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
- <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
- <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
+ <language>{{ site.Language.LanguageCode }}</language>
+ {{- with $authorName }}<managingEditor>{{ . }}</managingEditor>{{ end }}
+ {{- with $authorName }}<webMaster>{{ . }}</webMaster>{{ end }}
+ {{- with .Site.Copyright }}<copyright>{{ . }}</copyright>{{ end }}
+ {{- if not .Date.IsZero }}<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end }}
@@ -50,9 +50,9 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
- {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
+ {{- with $authorName }}<author>{{ . }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
- <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
+ <description>{{ .Content | transform.XMLEscape | safeHTML }}</description>
</item>
{{- end }}
</channel>
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 @@
<article class="tags-index">
<header class="tags-index__header">
<h1 class="tags-index__headline">
- {{ lang.Translate "tags.all" | default "All Tags" }}
+ {{ lang.Translate "tags.all_title" | default "All Tags" }}
</h1>
<p class="tags-index__description">
- {{ 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." }}
</p>
</header>
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 @@
<footer class="tag-page__footer">
<nav class="tag-page__navigation" aria-label="{{ lang.Translate "tags.navigation" | default "Tag navigation" }}">
<a href="{{ .Parent.RelPermalink }}" class="tag-page__view-all-link">
- {{ lang.Translate "tags.all_tags" | default "All tags" }} »
+ {{ lang.Translate "tags.all_title" | default "All tags" }} »
</a>
</nav>
</footer>