GoBlog/templates/interactions.gohtml

22 lines
1.2 KiB
Plaintext
Raw Normal View History

{{ define "interactions" }}
<details class="p" id="interactions">
<summary><b>{{ string .Blog.Lang "interactions" }}</b></summary>
2021-11-18 21:56:30 +00:00
{{ $rd := . }}
2021-02-14 13:15:01 +00:00
{{ with ( mentions .Canonical ) }}
2021-11-18 21:56:30 +00:00
{{ include "mentions" $rd . }}
{{ end }}
2021-07-22 11:41:52 +00:00
<form class="fw p" method="post" action="/webmention">
<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 }}">
2021-07-22 11:41:52 +00:00
<input type="submit" value="{{ string .Blog.Lang "send" }}">
</form>
2021-07-22 11:41:52 +00:00
<form class="fw p" method="post" action="{{ .Blog.RelativePath "/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>
2021-07-22 11:41:52 +00:00
<input type="submit" value="{{ string .Blog.Lang "docomment" }}">
2021-01-23 16:24:47 +00:00
</form>
</details>
{{ end }}