GoBlog/templates/comment.gohtml

23 lines
785 B
Plaintext
Raw Normal View History

2021-01-23 16:24:47 +00:00
{{ define "title" }}
2021-02-14 13:15:01 +00:00
<title>{{ string .Blog.Lang "acommentby" }} {{ .Data.Name }}</title>
2021-01-23 16:24:47 +00:00
{{ end }}
{{ define "main" }}
<main class=h-entry>
<p><a class="u-in-reply-to" href="{{ absolute .Data.Target }}">{{ absolute .Data.Target }}</a></p>
<div class="p-author h-card p">
{{ string .Blog.Lang "acommentby" }}
{{ if .Data.Website }}<a href="{{ .Data.Website }}" class="p-name u-url" target="_blank" rel="nofollow noopener noreferrer ugc">{{ .Data.Name }}</a>{{ else }}<span class="p-name">{{ .Data.Name }}</span>{{ end }}:
</div>
2021-02-17 18:22:59 +00:00
<p class="e-content">
2021-02-03 09:44:39 +00:00
{{ html .Data.Comment }}
2021-02-17 18:22:59 +00:00
</p>
2021-01-23 16:24:47 +00:00
</main>
2021-02-14 13:15:01 +00:00
{{ if commentsenabled .Blog }}
{{ include "interactions" . }}
{{ end }}
2021-01-23 16:24:47 +00:00
{{ end }}
{{ define "comment" }}
{{ template "base" . }}
{{ end }}