website/layouts/partials/data/description.html

14 lines
321 B
HTML
Raw Permalink Normal View History

2022-12-10 10:37:36 +00:00
<!-- Use site subtitle by default -->
2023-10-22 23:28:31 +00:00
{{ $description := site.Data.site.description }}
2022-12-10 10:37:36 +00:00
{{ if .Description }}
<!-- Page description exists -->
{{ $description = .Description }}
{{ else if .IsPage }}
<!-- Use page summary -->
{{ $description = .Summary }}
{{ end }}
{{ return ($description | plainify)}}