diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-09-02 13:26:05 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-09-02 13:26:05 +0530 |
| commit | 0eac254d5801aaf7fd5c0516b563dffc4f47c8b3 (patch) | |
| tree | d7b5d0f0240f329959f3c7b79cf25d41582476e7 /layouts | |
| parent | ee81fe77ad30cc55c89c738f1532947c723321d0 (diff) | |
Enable `summary` in Section pages
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d696594..08ad70a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,7 +18,7 @@ {{- range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- else }} {{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- end -}}" /> {{- end }} -<meta name="description" content="{{- with .Description }}{{ . }}{{- else }}{{- if .IsPage}} +<meta name="description" content="{{- with .Description }}{{ . }}{{- else }}{{- if or .IsPage .IsSection}} {{- .Summary | default (printf "%s - %s" .Title .Site.Title) }}{{- else }} {{- with .Site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}"> <meta name="author" content="{{ (partial "author.html" . ) }}"> |
