summaryrefslogtreecommitdiff
path: root/layouts/blog/baseof.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-08-31 19:22:11 +0200
committermms <michal@sapka.me>2024-08-31 19:22:11 +0200
commit091aa067d036ab60eb7d627d1997572daebaa310 (patch)
treed975c020497928a05ee30c257cfc88dc943cae76 /layouts/blog/baseof.html
parentbcf8aee086ae1c9e66a8ca461bf0912cda5d701d (diff)
feat(blog): rrc
Diffstat (limited to 'layouts/blog/baseof.html')
-rw-r--r--layouts/blog/baseof.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html
index 37d34bf..49c7253 100644
--- a/layouts/blog/baseof.html
+++ b/layouts/blog/baseof.html
@@ -25,7 +25,12 @@
<meta property="og:title" content="{{ .Page.Title }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ .Permalink }}">
- <meta property="og:image" content="{{ $header_rect.Permalink }}">
+
+ {{- $imageUrl := default "blog/logo/right.png" .Params.image }}
+ {{- $image := resources.Get $imageUrl }}
+ <meta property="og:image" content="{{ $image.Permalink }}">
+
+
<meta property="og:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}">
<link rel="canonical" href="{{ .Permalink }}">