mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 18:31:45 +01:00
17 lines
No EOL
473 B
HTML
17 lines
No EOL
473 B
HTML
<!-- Use site subtitle by default -->
|
|
{{ $description := .Site.Params.sidebar.subtitle }}
|
|
|
|
<!-- Seprate description exists -->
|
|
{{ if .Site.Params.description }}
|
|
{{ $description = .Site.Params.description }}
|
|
{{ end }}
|
|
|
|
{{ if .Description }}
|
|
<!-- Page description exists -->
|
|
{{ $description = .Description }}
|
|
{{ else if .IsPage }}
|
|
<!-- Use page summary -->
|
|
{{ $description = .Summary }}
|
|
{{ end }}
|
|
|
|
{{ return (replaceRE "\n" " " $description | plainify) }} |