blob: 506b56afe0ff96dda4c3b636c3b68117e12df758 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{{ define "main" }}
<div class="h-entry">
<article>
<h1 class="p-name">{{ .Title }}</h1>
{{if .Date }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{end}}
</article>
<article class="e-content">
{{ .Content }}
</article>
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{if .Param "comments"}}
<h2>Комментарии</h2>
{{ range $key, $comment := where .Site.Data.comments "url" "eq" .Page.Path }}
<article>
<b>{{$comment.from}}:</b>
<p>{{$comment.comment}}</p>
</article>
{{ else }}
<article>Комментариев пока нет.</article>
{{ end }}
<article>
{{ $comment := (print "mailto:blog@neonxp.ru?subject=" .Page.Permalink | safeHTML) }}
Для отправки комментария достаточно отправить e-mail со своим комментарием
на адрес
<a href={{$comment}}>blog@neonxp.ru</a>, в теме нужно указать ссылку на
пост.<br />
Или просто нажать кнопку ниже. Всё очень просто :)<br />
<a class="btn-primary" href={{$comment}}>Написать комментарий</a>
</article>
{{end}}
</div>
{{ end }}
|