diff options
author | Michał M. Sapka <michal@sapka.me> | 2023-02-01 00:00:11 +0100 |
---|---|---|
committer | Michał M. Sapka <michal@sapka.me> | 2023-02-01 00:00:11 +0100 |
commit | b9c857f6f26703f1c402e9bbb9006d49868f5189 (patch) | |
tree | 8379b75c9d5ba0d76b1d88b87dba5444003791a5 /layouts/_default/baseof.html | |
parent | f3ebd2fd48c0b670586c26489df59d67304e09aa (diff) |
chore: use abstract for social descriptions
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2f6c1ab..899ff33 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -21,12 +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 property="og:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}"/> <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 }}" /> + <meta name="twitter:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}" /> <link rel="canonical" href="{{ .Permalink }}"> <link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'> |