2021-01-24 22:43:26 +00:00
{{ define "main" }}
< div itemscope itemtype = "https://schema.org/BlogPosting" class = "h-entry" >
< article itemprop = "mainEntityOfPage" >
< header id = "post-header" >
< h1 itemprop = "name headline" class = "p-name" > {{ .Title }}< / h1 >
2021-02-25 03:36:09 +00:00
{{ if lt .Date .Lastmod -}}
2021-01-31 00:11:18 +00:00
Posted < time class = "dt-published" itemprop = "datePublished" datetime = "{{ .Date.Format " 2006-01-02T15:04:05Z07:00 " } } " > {{ .Date.Format "2006-01-02" }}< / time > by {{- partial "indieweb-author.html" -}} on his < a class = "u-url" href = "https://seirdy.one{{ .RelPermalink }}" > Website< / a >
2021-01-24 22:43:26 +00:00
{{- with .OutputFormats.Get "gemtext" }}
and < a rel = "syndication" class = "u-syndication" href = "{{replace .Permalink " / gemini " " " 1 | safeURL } } " > Gemini capsule< / a >
{{- end -}}
< br >
2021-02-25 03:36:09 +00:00
Last updated < time itemprop = "dateModified" class = "dt-updated" datetime = "{{ .Lastmod.Format " 2006-01-02T15:04:05Z07:00 " } } " > {{ .Lastmod.Format "2006-01-02" }}< / time > . < a href = "{{ .Site.Params.logUrlPrefix }}content/{{ .File.Path }}" > Changelog< / a >
2021-01-24 22:43:26 +00:00
{{ else -}}
2021-01-31 00:11:18 +00:00
Posted < a class = "u-url" href = "https://seirdy.one{{ .RelPermalink }}" > < time itemprop = "datePublished" datetime = "{{ .Date.Format " 2006-01-02T15:04:05Z07:00 " } } " > {{ .Date.Format "2006-01-02" }}< / time > < / a > by {{- partial "indieweb-author.html" -}} on his < a class = "u-url" href = "https://seirdy.one{{ .RelPermalink }}" > Website< / a >
{{- with .OutputFormats.Get "gemtext" }}
and < a rel = "syndication" class = "u-syndication" href = "{{replace .Permalink " / gemini " " " 1 | safeURL } } " > Gemini capsule< / a >
{{- end -}}
2021-01-24 22:43:26 +00:00
{{ end }}
< / header >
< section class = "e-content" itemprop = "articlebody" >
{{ partial "processed-content" . -}}
< / section >
< / article >
< / div >
< hr >
2021-06-23 05:44:52 +00:00
< p >
2022-01-06 00:00:09 +00:00
{{- if .PrevInSection -}}< a href = "{{ .PrevInSection.Permalink }}" > Previous< / a > {{- end -}}
{{- if and (.PrevInSection) (.NextInSection) }} · {{ end -}}
{{- if .NextInSection -}}< a href = "{{ .NextInSection.Permalink }}" > Next< / a > {{- end -}}
2021-06-23 05:44:52 +00:00
< / p >
< hr >
2021-01-24 22:43:26 +00:00
< footer class = "comment" >
< p > < a href = "mailto:~seirdy/seirdy.one-comments@lists.sr.ht" > Send an email< / a > to leave a comment in the < a href = "https://lists.sr.ht/~seirdy/seirdy.one-comments" > mailing list< / a > for seirdy.one. You'll have to send in plain text; please < a href = "https://useplaintext.email/" > learn how< / a > . Alternatively, send your email < a href = "mailto:seirdy@seirdy.one" > directly to me< / a > ; it won’ t show up on the mailing list, but I’ ll see it.< / p >
2022-02-08 05:26:03 +00:00
< p > This site also supports < a href = "https://indieweb.org/webmention" > Webmentions< / a > . Webmentions received for this post will appear below after I approve them. I sometimes send Webmentions to myself on behalf of linking sites that don't support them. Check the < a href = "https://web.archive.org/" > Wayback Machine< / a > if any links are broken.< / p >
2021-01-24 22:43:26 +00:00
< section class = "webmentions" >
< h2 > Webmentions< / h2 >
< ul class = "unstyled-list" >
{{ $target := .RelPermalink -}}
{{ $url := printf "https://seirdy.one/webmentions/get?status=approved& target=https://seirdy.one%s" $target -}}
{{ $webmentions := getJSON $url -}}
{{ range $webmentions -}}
{{ $webmention := . -}}
< li >
< time datetime = "{{ dateFormat " 2006-01-02 15:04:05Z07:00 " $ webmention . created_at } } " > {{ dateFormat "2006-01-02" $webmention.created_at }}< / time >
< br >
{{ if (eq $webmention.type "like") -}}
2022-02-04 19:28:18 +00:00
< a href = "{{ $webmention.source }}" rel = "nofollow" > {{ if $webmention.author_name }}{{ $webmention.author_name }}{{ else if $webmention.title }}{{ $webmention.title }}{{ else }}{{ $webmention.source }}{{ end }}< / a > liked this
2021-01-24 22:43:26 +00:00
{{else -}}
2022-02-04 19:28:18 +00:00
< a href = "{{ $webmention.source }}" rel = "nofollow" > {{ if $webmention.title }}{{ $webmention.title }}{{ else }}{{ $webmention.source }}{{ end }}< / a >
2021-01-24 22:43:26 +00:00
{{- end }}
< / li >
{{ else -}}
< li > < p > This post doesn't have any approved Webmentions yet.< / p > < / li >
{{- end }}
< / ul >
< / section >
< / footer >
{{ end }}