mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Exclude footer from h-entry
- Move the end of the h-entry div up above the footer. - Move syndicated link to Gemini capsule up into the byline so it gets included in the now-smaller h-entry. See https://github.com/nekr0z/static-webmentions/issues/1
This commit is contained in:
parent
f2d41c1c32
commit
a370429a2e
1 changed files with 32 additions and 33 deletions
|
@ -5,7 +5,11 @@
|
|||
<h1 itemprop="name headline" class="p-name">{{ .Title }}</h1>
|
||||
{{ $lastmod := .Lastmod -}}
|
||||
{{ if lt .Date $lastmod -}}
|
||||
Originally posted <a class="u-url" href="https://seirdy.one{{ .RelPermalink }}"><time class="dt-published" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time></a> by {{- partial "indieweb-author.html" -}}<br>
|
||||
Originally 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>
|
||||
{{- with .OutputFormats.Get "gemtext" }}
|
||||
and <a rel="syndication" class="u-syndication" href="{{replace .Permalink "/gemini" "" 1 | safeURL}}">Gemini capsule</a>
|
||||
<br>
|
||||
{{- end -}}
|
||||
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>
|
||||
{{ else -}}
|
||||
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" -}}
|
||||
|
@ -15,37 +19,32 @@
|
|||
{{ partial "processed-content" . -}}
|
||||
</section>
|
||||
</article>
|
||||
<hr>
|
||||
<footer class="comment">
|
||||
{{ with .OutputFormats.Get "gemtext" -}}
|
||||
<p>
|
||||
View this article on <a rel="syndication" class="u-syndication" href="{{replace .Permalink "/gemini" "" 1 | safeURL}}">my Gemini capsule</a>
|
||||
</p>
|
||||
{{ end -}}
|
||||
<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>
|
||||
<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.</p>
|
||||
<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") -}}
|
||||
<a href="{{ $webmention.source }}" rel="nofollow">{{ $webmention.author_name }}</a> liked this
|
||||
{{else -}}
|
||||
<a href="{{ $webmention.source }}" rel="nofollow">{{ $webmention.title }}</a>
|
||||
{{- end }}
|
||||
</li>
|
||||
{{ else -}}
|
||||
<li><p>This post doesn't have any approved Webmentions yet.</p></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</section>
|
||||
</footer>
|
||||
</div>
|
||||
<hr>
|
||||
<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>
|
||||
<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.</p>
|
||||
<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") -}}
|
||||
<a href="{{ $webmention.source }}" rel="nofollow">{{ $webmention.author_name }}</a> liked this
|
||||
{{else -}}
|
||||
<a href="{{ $webmention.source }}" rel="nofollow">{{ $webmention.title }}</a>
|
||||
{{- end }}
|
||||
</li>
|
||||
{{ else -}}
|
||||
<li><p>This post doesn't have any approved Webmentions yet.</p></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</section>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue