From af0929c29bb6078636e74efb45246f60b76bf697 Mon Sep 17 00:00:00 2001 From: June Date: Thu, 25 Jan 2024 23:55:35 +0100 Subject: [PATCH] Use section and article HTML elements instead of just divs on main page See here for information on these elements: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article --- themes/ccchh/layouts/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/themes/ccchh/layouts/index.html b/themes/ccchh/layouts/index.html index 1e58c48..cb12e1a 100644 --- a/themes/ccchh/layouts/index.html +++ b/themes/ccchh/layouts/index.html @@ -1,16 +1,16 @@ {{ define "main" }}
-
+
{{ .Content }} -
+ {{- $events := where (.Site.GetPage "blog").Pages ".Params.categories" "event" }} {{- $upcoming := where $events ".Params.date" "ge" now }} {{ if $upcoming }} -
+

Neuigkeiten

{{- range $upcoming.ByDate }} -
+
{{- partial "blog-header.html" (dict "headingLink" true "level" 4 "reduced" true "page" . ) }} {{- if in .RawContent "" }} @@ -18,15 +18,15 @@ {{- else }}

{{ .Summary | safeHTML }}

{{- end }} -
+ {{- end }} -
+ {{- end }} {{- $home := .Site.GetPage "/home" }} {{- $sections := where ($home.Resources.ByType "page") ".File.LogicalName" "index.md" }} {{- range sort $sections "File.Path" "asc" }} -
+
{{- $hdg_id := .Title | lower | safeURL }}

{{ .Title }}

{{ .Content -}} @@ -62,7 +62,7 @@ {{- end }}
{{- end }} - + {{ end }}