]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update social.html: use `article` when it's a page (#31775)
authorXhmikosR <xhmikosr@gmail.com>
Tue, 29 Sep 2020 16:28:03 +0000 (19:28 +0300)
committerGitHub <noreply@github.com>
Tue, 29 Sep 2020 16:28:03 +0000 (19:28 +0300)
site/layouts/partials/social.html

index 851ecdcc4e9ddb24727640f8e207a727de205d75..a63f6caee84e20fb9925517fce948e59a4f30635 100644 (file)
@@ -10,7 +10,7 @@
 <meta property="og:url" content="{{ .Permalink }}">
 <meta property="og:title" content="{{ .Title | markdownify }}">
 <meta property="og:description" content="{{ .Page.Params.description | default .Site.Params.description | markdownify }}">
-<meta property="og:type" content="website">
+<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
 <meta property="og:image" content="{{ .Site.Params.social_image_path | absURL }}">
 <meta property="og:image:type" content="image/png">
 <meta property="og:image:width" content="1000">