diff options
author | miraikumiko <miraikumiko@disroot.org> | 2025-04-29 00:59:50 +0200 |
---|---|---|
committer | miraikumiko <miraikumiko@disroot.org> | 2025-04-29 00:59:50 +0200 |
commit | bc2c29152e11cf637db3b8337b17d1330339a0a9 (patch) | |
tree | a187a9b22338ec4e3525edc50a6aece8b1fd0882 /layouts/partials | |
parent | ff37fea2581cd9066819168c9e3339a3f5683e76 (diff) | |
download | hugo-bearcub-bc2c29152e11cf637db3b8337b17d1330339a0a9.tar.gz hugo-bearcub-bc2c29152e11cf637db3b8337b17d1330339a0a9.tar.bz2 |
Fix theme
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/seo_tags.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/seo_tags.html b/layouts/partials/seo_tags.html index 63d4d6e..058b788 100644 --- a/layouts/partials/seo_tags.html +++ b/layouts/partials/seo_tags.html @@ -3,3 +3,7 @@ <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" /> <meta name="author" content="{{ .Site.Params.Author.name }}" /> <meta name="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" /> + +{{ if and (and (default false .Site.Params.generateSocialCard) (not (isset .Params "images"))) (eq .Kind "page") }} + {{ partial "social_card.html" . }} +{{ end }} |