From f2d41c1c3269d31aa420abacddc0a240800901cd Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 19 Jan 2021 21:15:21 -0800 Subject: [PATCH] Metadata: Improve microformats + microdata - Wrap the in a to make the h-entry expose an author URL (link to homepage). Useful for sending Webmentions. - Switch from schema.org/Article to schema.org/BlogPosting --- content/_index.md | 3 +-- layouts/_default/single.html | 6 +++--- layouts/shortcodes/indieweb-author.html | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/content/_index.md b/content/_index.md index a196e88..20cea4d 100644 --- a/content/_index.md +++ b/content/_index.md @@ -11,8 +11,7 @@ Seirdy ====== It me! This is the personal website for -{{% indieweb-icon %}}Rohan -Kumar, a.k.a. Seirdy (online handle). +{{% indieweb-icon %}}Rohan Kumar, a.k.a. Seirdy (online handle). Other versions of this website ------------------------------ diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 603cb20..a343073 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,14 +1,14 @@ {{ define "main" }} -
+

{{ .Title }}

{{ $lastmod := .Lastmod -}} {{ if lt .Date $lastmod -}} - Originally posted by {{- partial "indieweb-author.html" -}}.
+ Originally posted by {{- partial "indieweb-author.html" -}}
Last updated . Changelog {{ else -}} - Posted by {{- partial "indieweb-author.html" -}}. + Posted by {{- partial "indieweb-author.html" -}} {{ end }}
diff --git a/layouts/shortcodes/indieweb-author.html b/layouts/shortcodes/indieweb-author.html index c28a4cc..8bd7850 100644 --- a/layouts/shortcodes/indieweb-author.html +++ b/layouts/shortcodes/indieweb-author.html @@ -1,4 +1,3 @@ {{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "md5" -}} - +