summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-02-21 22:57:23 -0500
committerOwen Jacobson <owen@grimoire.ca>2024-02-21 22:57:23 -0500
commitcdc1ab6edb241e9fb973eff28ae5ff370d805222 (patch)
tree68527c900d33db0141ebd7f09408660f5387a82e /layouts
parentcd906ec414a00113fe791870b871c09a1b960fd2 (diff)
Maybe add opengraph unfurls?
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/index.html3
2 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index c665429..1714af4 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -7,6 +7,10 @@
{{- with .OutputFormats.Get "rss" }}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ site.Title }}">
{{- end }}
+ {{- block "opengraph" . }}
+ {{- if .Title }}<meta property="og:title" content="{{ .Title }}">{{ end }}
+ {{- if .Summary }}<meta property="og:description" content="{{ .Summary }}">{{ end }}
+ {{- end }}
</head>
<body>
{{- block "header" . }}
diff --git a/layouts/index.html b/layouts/index.html
index f9f48e1..62f9019 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,3 +1,6 @@
+{{- define "opengraph" }}
+{{- end }}
+
{{- define "main" }}
<main>
{{- if .Pages }}