diff options
| author | Arne Rief <riearn@proton.me> | 2025-09-13 11:50:38 +0200 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-09-13 11:50:38 +0200 |
| commit | afc1f095745a548ff400f187d53bc1570f02bcf2 (patch) | |
| tree | 00cc286e358c2dfcb5d868d64cd7fef5428ad625 /layouts/_default/home.html | |
| parent | bc503590943804838a98e35c705a89667e5b0758 (diff) | |
RSS full content, index renamed to home, fix text bugs
Diffstat (limited to 'layouts/_default/home.html')
| -rw-r--r-- | layouts/_default/home.html | 24 |
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 }} |
