30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
{{ if .Param "indieweb.enabled" }}
|
|
{{ if not (.Param "indieweb.hidewmform") }}
|
|
{{ if .Param "indieweb.endpoints.webmention" }}
|
|
{{ $md5pl := md5 (replace .Permalink "/" "") }}
|
|
{{ $mentions := index .Site.Data.mentions $md5pl }}
|
|
{{ $dateFormat := ( .Site.Params.dateformat | default "January 02, 2006") }}
|
|
<details class="fake-p">
|
|
<summary><b>{{ T "interactions" }}</b></summary>
|
|
{{ with $mentions }}
|
|
<ul>
|
|
{{ range sort . ".date" "asc" }}{{ $sourceUrl := urls.Parse .source }}
|
|
<li><a href="{{ .source }}" target="_blank" rel="nofollow noopener noreferrer">{{ $sourceUrl.Host }}</a> <i>{{ dateFormat $dateFormat .date }}</i></li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
<form method="post" action="{{ .Param "indieweb.endpoints.webmention" }}">
|
|
<label>
|
|
{{ T "wmform_label" }}
|
|
<input class="full-width" type="url" name="source" placeholder="URL" style="margin-bottom: 5px;">
|
|
</label>
|
|
<input type="hidden" name="target" value="{{ .Permalink }}">
|
|
<input class="full-width" type="submit" value="{{ T "wmform_btn" }}" style="margin-bottom: 5px;">
|
|
</form>
|
|
<form action="https://quill.p3k.io/?dontask=1&me=https://commentpara.de&reply={{ .Permalink }}">
|
|
<button class="full-width" type="submit">{{ T "anon_comment" }}</button>
|
|
</form>
|
|
</details>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }} |