summaryrefslogtreecommitdiff
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
parentcd906ec414a00113fe791870b871c09a1b960fd2 (diff)
Maybe add opengraph unfurls?
-rw-r--r--content/_index.md4
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/index.html3
3 files changed, 9 insertions, 2 deletions
diff --git a/content/_index.md b/content/_index.md
index 1f1c75a..81be148 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -1,9 +1,9 @@
---
title: The Grimoire
+summary: |
+ A personal site.
---
The best way to contact me is [by email], but [I'm present in many places].
[by email]: mailto:owen@grimoire.ca
[I'm present in many places]: https://wheretofind.me/@owen
-
-<!--more-->
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 }}