mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-05 04:40:43 +00:00
14 lines
288 B
HTML
14 lines
288 B
HTML
|
{{ $description := "" }}
|
||
|
|
||
|
{{ if .Description }}
|
||
|
{{ $description = .Description }}
|
||
|
{{ else }}
|
||
|
{{ if .IsPage }}
|
||
|
{{ $description = .Summary }}
|
||
|
{{ else if .Site.Params.description }}
|
||
|
{{ $description = .Site.Params.description }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ return $description }}
|