mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 20:13:49 +01:00
12 lines
No EOL
322 B
HTML
12 lines
No EOL
322 B
HTML
<!-- Use site subtitle by default -->
|
|
{{ $description := .Site.Params.sidebar.subtitle }}
|
|
|
|
{{ if .Description }}
|
|
<!-- Page description exists -->
|
|
{{ $description = .Description }}
|
|
{{ else if .IsPage }}
|
|
<!-- Use page summary -->
|
|
{{ $description = .Summary }}
|
|
{{ end }}
|
|
|
|
{{ return ($description | plainify)}} |