summaryrefslogtreecommitdiff
path: root/layouts/_default
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 /layouts/_default
parentbc503590943804838a98e35c705a89667e5b0758 (diff)
RSS full content, index renamed to home, fix text bugs
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/home.html24
1 files changed, 24 insertions, 0 deletions
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" }}
+<div class="homepage">
+ <header class="homepage__header">
+ <h1 class="homepage__header-title">
+ {{ with .Title }}{{ . }}{{ else }}{{ site.Title | default "Welcome to my Blog!" }}{{ end }}
+ </h1>
+ {{- with site.Params.author.portrait }}
+ <img src="{{ . }}" alt="{{ . }}" class="homepage__header-image" />
+ {{- end }}
+ {{- with .Content }}
+ <div class="homepage__header-content">
+ {{ . }}
+ </div>
+ {{- end }}
+ </header>
+
+ {{- partial "list/recent-posts.html" (dict
+ "count" 5
+ "title" (lang.Translate "posts.recent" | default "Recent Articles")
+ "show_view_all" true
+ )
+ -}}
+</div>
+{{- end }}