Add description to other layouts

- helps adding description to sub-sections,
  search, terms, archive pages
This commit is contained in:
Aditya Telange 2021-01-27 21:19:21 +05:30
parent a414d16b86
commit 9257321547
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
4 changed files with 21 additions and 1 deletions

View File

@ -2,6 +2,11 @@
<header class="page-header">
<h1>{{ .Title }}</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
</header>
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}

View File

@ -7,6 +7,11 @@
{{- if not .IsHome | and .Title }}
<header class="page-header">
<h1>{{ .Title }}</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
</header>
{{- end }}

View File

@ -8,6 +8,11 @@
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
{{- if not (.Param "hideMeta") }}
<div class="post-meta">
{{- if .IsTranslated -}}

View File

@ -3,6 +3,11 @@
{{- if .Title }}
<header class="page-header">
<h1>{{ .Title }}</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
</header>
{{- end }}