2022-02-18 05:03:19 -08:00
|
|
|
{{ $isPage := or (and (ne .Type "posts") (in "section page" .Kind )) (and (eq .Type "posts") (eq .Kind "page")) }}
|
2022-02-07 01:57:43 -08:00
|
|
|
{{ $description := "" }}
|
|
|
|
|
|
|
|
{{ if .Description }}
|
|
|
|
{{ $description = .Description }}
|
|
|
|
{{ else }}
|
2022-02-18 05:03:19 -08:00
|
|
|
{{ if $isPage }}
|
2022-02-07 01:57:43 -08:00
|
|
|
{{ $description = .Summary }}
|
|
|
|
{{ else if .Site.Params.description }}
|
|
|
|
{{ $description = .Site.Params.description }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ return $description }}
|