summaryrefslogtreecommitdiffstats
path: root/layouts/partials/templates/opengraph.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/templates/opengraph.html')
-rw-r--r--layouts/partials/templates/opengraph.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html
index 3b9fb36..aed77e3 100644
--- a/layouts/partials/templates/opengraph.html
+++ b/layouts/partials/templates/opengraph.html
@@ -18,9 +18,10 @@
<meta property="og:image:height" content="{{ .Params.cover.height }}">
{{- end }}
{{- else }}
- <meta property="og:image" content="{{ "img/open-graph-logo.png" | absURL }}">
- <meta property="og:image:width" content="200">
- <meta property="og:image:height" content="200">
+ {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }}
+ <meta property="og:image" content="{{ $logo.Permalink }}">
+ <meta property="og:image:width" content="{{ site.Params.assets.logo_width | default 200 }}">
+ <meta property="og:image:height" content="{{ site.Params.assets.logo_height | default 200 }}">
{{- end }}
{{- /* Facebook Page Admin ID for Domain Insights */}}