aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-05 07:52:44 -0400
committertdro <tdro@noreply.example.com>2022-05-05 07:52:44 -0400
commit4315eb22d0ba720c125343a61d135c94c5f89774 (patch)
tree9ed6381cf6f03a70f3dfce5e5a1a06eb901b2b5e /themes
parent8a39d95af396b5d6d509b835d1b08846b371b257 (diff)
downloadcanory-4315eb22d0ba720c125343a61d135c94c5f89774.tar.gz
canory-4315eb22d0ba720c125343a61d135c94c5f89774.tar.bz2
canory-4315eb22d0ba720c125343a61d135c94c5f89774.zip
themes/default/layouts/partials/head: Set meta images
Select author image dynamically instead of slugged 404.
Diffstat (limited to 'themes')
-rw-r--r--themes/default/layouts/partials/head.html6
-rw-r--r--themes/default/layouts/partials/meta-thumbnail-path.html1
2 files changed, 3 insertions, 4 deletions
diff --git a/themes/default/layouts/partials/head.html b/themes/default/layouts/partials/head.html
index 8adc282..e45b5d6 100644
--- a/themes/default/layouts/partials/head.html
+++ b/themes/default/layouts/partials/head.html
@@ -12,13 +12,13 @@
<!-- Search Engine Tags -->
<meta itemprop="name" content="{{ partial "site-title.html" . -}}">
<meta itemprop="description" content="{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}">
-<meta itemprop="image" content="{{ .Site.BaseURL }}/images/{{ partial "meta-thumbnail-path.html" . }}.png">
+<meta itemprop="image" content="{{ .Site.BaseURL }}/{{ partial "author-media-path.html" . }}/profile/picture.png">
<!-- Open Graph Meta Tags -->
<meta property="og:title" content="{{ partial "site-title.html" . -}}">
<meta property="og:description" content="{{- partial "site-description.html" . -}}">
<meta property="og:url" content="{{ .Permalink }}">
-<meta property="og:image" content="{{ .Site.BaseURL }}/images/{{ partial "meta-thumbnail-path.html" . }}.png">
+<meta property="og:image" content="{{ .Site.BaseURL }}/{{ partial "author-media-path.html" . }}/profile/picture.png">
<meta property="og:type" content="website">
<meta property="article:published_time" content="{{ .Params.PublishDate }}">
<meta property="article:modified_time " content="{{ .Params.LastMod }}">
@@ -27,7 +27,7 @@
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ partial "site-title.html" . -}}">
<meta name="twitter:description" content="{{- partial "site-description.html" . -}}">
-<meta name="twitter:image" content="{{ .Site.BaseURL }}/images/{{ partial "meta-thumbnail-path.html" . }}.png">
+<meta name="twitter:image" content="{{ .Site.BaseURL }}/{{ partial "author-media-path.html" . }}/profile/picture.png">
<!-- Progressive Enhancement -->
{{- partial "manifest.html" . -}}
diff --git a/themes/default/layouts/partials/meta-thumbnail-path.html b/themes/default/layouts/partials/meta-thumbnail-path.html
deleted file mode 100644
index 90aa4c2..0000000
--- a/themes/default/layouts/partials/meta-thumbnail-path.html
+++ /dev/null
@@ -1 +0,0 @@
-{{- or .Slug "404" -}}