mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Simplify interactions section a bit
Inspired by feedback from sysinhell: https://pleroma.envs.net/notice/AVe4QxnEKCRXmDn6Bs
This commit is contained in:
parent
52e0bc5081
commit
f31763b9b1
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Publish a response on your own website and share the link here to send me a webmention! Include a link to this page’s canonical location for it to be accepted.</legend>
|
<legend>Publish a response on your own website, and link back to this page's canonical location. Then share your link here to turn it into a Webmention.</legend>
|
||||||
<form
|
<form
|
||||||
itemprop="potentialAction" itemscope="" itemtype="https://schema.org/CommentAction"
|
itemprop="potentialAction" itemscope="" itemtype="https://schema.org/CommentAction"
|
||||||
action="https://seirdy.one/webmentions/receive" method="post">
|
action="https://seirdy.one/webmentions/receive" method="post">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<h3 id="webmentions" tabindex="-1">Web­mentions</h3>
|
<h3 id="webmentions" tabindex="-1">Web­mentions</h3>
|
||||||
<p>This site supports <a href="https://indieweb.org/Webmention">Webmentions</a>, a backlink-based alternative to traditional comment forms.</p>
|
<p>This site supports <a href="https://indieweb.org/Webmention">Webmentions</a>, a backlink-based alternative to traditional comment forms.</p>
|
||||||
{{ partial "webmention-form.html" . }}
|
<details><summary>Send a Webmention</summary>{{ partial "webmention-form.html" . }}</details>
|
||||||
{{- /* Fetch all webmentions with bearer token */ -}}
|
{{- /* Fetch all webmentions with bearer token */ -}}
|
||||||
{{- $allMentions := (index .Site.Data "webmentions").items -}}
|
{{- $allMentions := (index .Site.Data "webmentions").items -}}
|
||||||
{{- /* Filter webmentions to just the ones for the current targets */ -}}
|
{{- /* Filter webmentions to just the ones for the current targets */ -}}
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
{{- /* Render webmentions if they exist */ -}}
|
{{- /* Render webmentions if they exist */ -}}
|
||||||
{{- $count := (len $webmentions) -}}
|
{{- $count := (len $webmentions) -}}
|
||||||
{{- if gt $count 0 -}}
|
{{- if gt $count 0 -}}
|
||||||
<p>Webmentions received for this post appear in the following list after I approve them. I sometimes send Webmentions to myself on behalf of linking sites that don’t support them. I auto-replace broken links with <a href="https://web.archive.org/">Wayback Machine</a> snapshots, if they exist.</p>
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Toggle {{ $count }} Webmentions</summary>
|
<summary>Toggle {{ $count }} Webmentions</summary>
|
||||||
|
<p>Webmentions received for this post appear in the following list after I approve them. I sometimes send Webmentions to myself on behalf of linking sites that don’t support them. I auto-replace broken links with <a href="https://web.archive.org/">Wayback Machine</a> snapshots, if they exist.</p>
|
||||||
<dl>
|
<dl>
|
||||||
{{ range sort $webmentions "created_at" -}}
|
{{ range sort $webmentions "created_at" -}}
|
||||||
{{ $webmention := . -}}
|
{{ $webmention := . -}}
|
||||||
|
|
Loading…
Reference in a new issue