aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authormiraikumiko <miraikumiko@disroot.org>2025-04-29 00:59:50 +0200
committermiraikumiko <miraikumiko@disroot.org>2025-04-29 00:59:50 +0200
commitbc2c29152e11cf637db3b8337b17d1330339a0a9 (patch)
treea187a9b22338ec4e3525edc50a6aece8b1fd0882 /layouts/partials
parentff37fea2581cd9066819168c9e3339a3f5683e76 (diff)
downloadhugo-bearcub-bc2c29152e11cf637db3b8337b17d1330339a0a9.tar.gz
hugo-bearcub-bc2c29152e11cf637db3b8337b17d1330339a0a9.tar.bz2
Fix theme
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/seo_tags.html4
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 }}