From 5741154155c7660ba28fbe9a6635c000d5f44675 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 28 Dec 2020 19:23:54 -0800 Subject: [PATCH] Indieweb: more h-entry metadata Should have all the basic elements of an h-entry now. --- layouts/posts/single.gmi | 1 + .../etch-custom/layouts/_default/single.html | 52 ++++++++++--------- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/layouts/posts/single.gmi b/layouts/posts/single.gmi index fd2c4ee..7ce51f8 100644 --- a/layouts/posts/single.gmi +++ b/layouts/posts/single.gmi @@ -1,4 +1,5 @@ # {{$.Title | safeHTML}} + {{ $lastmod := .Lastmod -}} {{ if lt .Date $lastmod -}} Originally posted {{ .Date.Format "2006-01-02" }}. Last updated {{ .Lastmod.Format "2006-01-02" }}. diff --git a/themes/etch-custom/layouts/_default/single.html b/themes/etch-custom/layouts/_default/single.html index 3097109..1d1197f 100644 --- a/themes/etch-custom/layouts/_default/single.html +++ b/themes/etch-custom/layouts/_default/single.html @@ -1,28 +1,30 @@ {{ define "main" }} -
-
-

{{ .Title }}

- {{ $lastmod := .Lastmod -}} - {{ if lt .Date $lastmod -}} - Originally posted by .
- Last updated . Changelog - {{ else -}} - Posted . - {{ end }} -
-
- {{ .Content -}} -
-
-
-
- +
+ +
+
+
+ {{ with .OutputFormats.Get "gemtext" -}} +

+ View this article on my Gemini capsule +

+ {{ end -}} +

Send an email to leave a comment in the mailing list for seirdy.one. You'll have to send in plain text; please learn how.. Alternatively, send your email directly to me; it won’t show up on the mailing list, but I’ll see it.

+
+

{{ end }}