2020-11-06 17:45:31 +00:00
|
|
|
{{ define "interactions" }}
|
|
|
|
<details class="p" id="interactions">
|
|
|
|
<summary><b>{{ string .Blog.Lang "interactions" }}</b></summary>
|
2021-02-14 13:15:01 +00:00
|
|
|
{{ with ( mentions .Canonical ) }}
|
2020-11-06 17:45:31 +00:00
|
|
|
<ul>
|
2021-02-14 13:15:01 +00:00
|
|
|
{{ range $i, $mention := . }}
|
2021-01-23 16:24:47 +00:00
|
|
|
<li><a href="{{$mention.Source}}" target="_blank" rel="nofollow noopener noreferrer ugc">
|
2020-11-06 17:45:31 +00:00
|
|
|
{{ if $mention.Author }}
|
|
|
|
{{ $mention.Author }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $mention.Source }}
|
|
|
|
{{ end }}
|
2020-11-17 19:01:02 +00:00
|
|
|
</a>{{ with $mention.Title }} <b>{{.}}</b>{{ end }}{{ with $mention.Content }} <i>{{.}}</i>{{ end }}</li>
|
2020-11-06 17:45:31 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
2021-01-23 16:24:47 +00:00
|
|
|
<form class="fw-form p" method="post" action="/webmention">
|
2020-11-06 17:45:31 +00:00
|
|
|
<label for="wm-source" class="p">{{ string .Blog.Lang "interactionslabel" }}</label>
|
2021-01-23 16:24:47 +00:00
|
|
|
<input id="wm-source" type="url" name="source" placeholder="URL" required>
|
2021-02-14 13:15:01 +00:00
|
|
|
<input type="hidden" name="target" value="{{ .Canonical }}">
|
2020-12-13 10:01:19 +00:00
|
|
|
<input class="fw" type="submit" value="{{ string .Blog.Lang "send" }}">
|
2020-11-06 17:45:31 +00:00
|
|
|
</form>
|
2021-01-23 16:24:47 +00:00
|
|
|
<form class="fw-form p" method="post" action="{{ blogrelative .Blog "/comment" }}">
|
2021-02-14 13:15:01 +00:00
|
|
|
<input type="hidden" name="target" value="{{ .Canonical }}">
|
2021-01-23 16:24:47 +00:00
|
|
|
<input type="text" name="name" placeholder="{{ string .Blog.Lang "nameopt" }}">
|
|
|
|
<input type="url" name="website" placeholder="{{ string .Blog.Lang "websiteopt" }}">
|
|
|
|
<textarea name="comment" required placeholder="{{ string .Blog.Lang "comment" }}"></textarea>
|
|
|
|
<input class="fw" type="submit" value="{{ string .Blog.Lang "docomment" }}">
|
|
|
|
</form>
|
2020-11-06 17:45:31 +00:00
|
|
|
</details>
|
|
|
|
{{ end }}
|