summaryrefslogtreecommitdiff
path: root/layouts/partials/head/og-image.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head/og-image.html')
-rw-r--r--layouts/partials/head/og-image.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/head/og-image.html b/layouts/partials/head/og-image.html
new file mode 100644
index 0000000..79ca9aa
--- /dev/null
+++ b/layouts/partials/head/og-image.html
@@ -0,0 +1,5 @@
+{{- if (or .IsHome .IsPage) -}}
+ {{- with resources.GetMatch "images/og-image.{webp,png,jpg}" -}}
+ {{- .RelPermalink -}}
+ {{- end -}}
+{{- end -}} \ No newline at end of file