diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-22 22:06:34 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-22 22:06:34 +0200 |
| commit | 2187073396f7a54f6cfa6835e992d962cc4f0fb1 (patch) | |
| tree | 1cc1aaddebd3c079d3cf1b0514bcdae27012edf8 /layouts | |
| parent | 344b004dd94c60df35663de8c75ae0697b3d95db (diff) | |
| download | gohugo-theme-ed-2187073396f7a54f6cfa6835e992d962cc4f0fb1.tar.gz | |
Setup title for index page
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/index.html | 5 |
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 }} |
