summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-22 22:06:34 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-22 22:06:34 +0200
commit2187073396f7a54f6cfa6835e992d962cc4f0fb1 (patch)
tree1cc1aaddebd3c079d3cf1b0514bcdae27012edf8 /layouts
parent344b004dd94c60df35663de8c75ae0697b3d95db (diff)
downloadgohugo-theme-ed-2187073396f7a54f6cfa6835e992d962cc4f0fb1.tar.gz
Setup title for index page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index a9c9279..01deb99 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -18,9 +18,8 @@
{{- else }}
{{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
<div class="articles">
- {{- range $paginator.Pages }}
- {{- .Render "teaser" }}
- {{- end }}
+ {{ with .Title }}<h1 class="page-title">{{ . }}</h1>{{ end }}
+ {{ range $paginator.Pages }}{{- .Render "teaser" }}{{ end }}
</div>
{{- end }}
{{- end }}