From f0506acd6f70da636b8fdb23439c85bbf2392b40 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Sat, 16 Aug 2025 22:42:03 +0200 Subject: HTML templates done --- layouts/index.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 layouts/index.html (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..127af83 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,22 @@ +{{- /* HOMEPAGE */ -}} +{{- define "main" }} +
+
+

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

+ {{- with .Content }} +
+ {{ . }} +
+ {{- end }} +
+ + {{- partial "list/recent-posts.html" (dict + "count" 10 + "title" (lang.Translate "posts.recent" | default "Recent Articles") + "show_view_all" true + ) + -}} +
+{{- end }} -- cgit v1.2.3