mirror of https://github.com/jlelse/GoBlog
27 lines
1.4 KiB
Plaintext
27 lines
1.4 KiB
Plaintext
{{ define "interactions" }}
|
|
<details class="p" id="interactions">
|
|
<summary><b>{{ string .Blog.Lang "interactions" }}</b></summary>
|
|
{{ $postperma := ( absolute .Data.Path ) }}
|
|
{{ $mentions := ( postmentions .Data ) }}
|
|
{{ if $mentions }}
|
|
<ul>
|
|
{{ range $i, $mention := $mentions }}
|
|
<li><a href="{{$mention.Source}}" target="_blank" rel="nofollow noopener noreferrer">
|
|
{{ if $mention.Author }}
|
|
{{ $mention.Author }}
|
|
{{ else }}
|
|
{{ $mention.Source }}
|
|
{{ end }}
|
|
</a>{{ with $mention.Title }} <i>{{.}}</i>{{ end }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
<form method="post" action="/webmention">
|
|
<label for="wm-source" class="p">{{ string .Blog.Lang "interactionslabel" }}</label>
|
|
<input id="wm-source" class="fw" type="url" name="source" placeholder="URL" style="margin-bottom: 5px;">
|
|
<input type="hidden" name="target" value="{{ $postperma }}">
|
|
<input class="fw" type="submit" value="{{ string .Blog.Lang "send" }}" style="margin-bottom: 5px;">
|
|
</form>
|
|
<a class="p button fw ct" href="https://quill.p3k.io/?dontask=1&me=https://commentpara.de&reply={{ $postperma }}">{{ string .Blog.Lang "anoncomment" }}</a>
|
|
</details>
|
|
{{ end }} |