Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pfadfinder-konstanz/hugo-dpsg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax.mehl <max.mehl@fsfe.org>2021-08-29 18:06:15 +0300
committermax.mehl <max.mehl@fsfe.org>2021-08-29 18:06:15 +0300
commitb1a3b436679ad8ec464071a9154256dfdc260cbf (patch)
tree374706d54fffe9d7a828e98db8646cd402a827e7
parent4deb8681a9c1a5b3ad2e0b49a58da5acbe0b2ee7 (diff)
display title on index page
-rw-r--r--layouts/index.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index c98cf58..911e1a5 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,10 @@
{{ define "main" }}
<main class="main list" role="main">
+ {{- with .Title }}
+ <header class="main__header">
+ <h1 class="main__title">{{ . }}</h1>
+ </header>
+ {{- end }}
{{- with .Content }}
<div class="content main__content clearfix">
{{ . }}