summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorArne Rief <riearn@proton.me>2025-09-06 22:13:26 +0200
committerArne Rief <riearn@proton.me>2025-09-06 22:13:26 +0200
commit359e9355cb5d1a7479091b35ea8ad47ab5fbca51 (patch)
tree089e1149fde811c57975bf9e5f3b8b1d206a945a /layouts
parent26df3baeb1afcb4c41ec99f940b237b9589caa42 (diff)
Homepage Image & small improvements
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index b23b087..50fbc82 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,12 +1,15 @@
{{- /* HOMEPAGE */ -}}
{{- define "main" }}
<div class="homepage">
- <header class="homepage__hero">
- <h1 class="homepage__title">
+ <header class="homepage__header">
+ <h1 class="homepage__header-title">
{{ with .Title }}{{ . }}{{ else }}{{ site.Title | default "Welcome to my Blog!" }}{{ end }}
</h1>
+ {{- with site.Params.homepageImage }}
+ <img src="{{ . }}" alt="{{ . }}" class="homepage__header-image" />
+ {{- end }}
{{- with .Content }}
- <div class="homepage__content">
+ <div class="homepage__header-content">
{{ . }}
</div>
{{- end }}