diff options
author | mms <michal@sapka.me> | 2024-08-31 19:22:11 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-08-31 19:22:11 +0200 |
commit | 091aa067d036ab60eb7d627d1997572daebaa310 (patch) | |
tree | d975c020497928a05ee30c257cfc88dc943cae76 /layouts/blog/baseof.html | |
parent | bcf8aee086ae1c9e66a8ca461bf0912cda5d701d (diff) |
feat(blog): rrc
Diffstat (limited to 'layouts/blog/baseof.html')
-rw-r--r-- | layouts/blog/baseof.html | 7 |
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 }}"> |