mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-25 22:30:40 +00:00
15 lines
403 B
HTML
15 lines
403 B
HTML
{{ $isPage := or (and (ne .Type "posts") (in "section page" .Kind )) (and (eq .Type "posts") (eq .Kind "page")) }}
|
|
{{ $description := "" }}
|
|
|
|
{{ if .Description }}
|
|
{{ $description = .Description }}
|
|
{{ else }}
|
|
{{ if $isPage }}
|
|
{{ $description = .Summary }}
|
|
{{ else if .Site.Params.description }}
|
|
{{ $description = .Site.Params.description }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ return $description }}
|