summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorMichał Sapka <michal@sapka.me>2023-01-10 17:40:39 +0100
committerMichał Sapka <michal@sapka.me>2023-01-10 17:40:39 +0100
commit0bdd62954aaa6511941aa063a17911a58a9b9641 (patch)
tree1c41b1492664e8e8a01740756d982a0ec2607d49 /layouts
parentf7123ef0b91ed0bf2c0a0fcec689dc5a66f78718 (diff)
feat: missing social tags
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ad626b9..fa7552a 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -13,6 +13,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="{{ $image.Permalink }}">
{{- $image := resources.Get "/icons/favicon-16x16.png" }}
<link rel="icon" type="image/png" sizes="16x16" href="{{ $image.Permalink }}">
+ <meta name="description" content="{{ .Page.Summary }}"/>
<meta property="og:title" content="{{ .Page.Title }}" />
<meta property="og:type" content="website" />
@@ -20,10 +21,12 @@
{{- $imageUrl := default "logo.png" .Params.image }}
{{- $image := resources.Get $imageUrl }}
<meta property="og:image" content="{{ $image.Permalink }}" />
+ <meta property="og:description" content="{{ .Page.Summary }}" />
<meta name="twitter:title" content="{{ .Page.Title }}">
<meta name="twitter:image" content="{{ $image.Permalink }}">
<meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:description" content="{{ .Page.Summary }}" />
<link rel="canonical" href="{{ .Site.BaseURL }}">
<link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'>