diff options
Diffstat (limited to '')
| -rw-r--r-- | themes/neonxp/layouts/page.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/themes/neonxp/layouts/page.html b/themes/neonxp/layouts/page.html new file mode 100644 index 0000000..506b56a --- /dev/null +++ b/themes/neonxp/layouts/page.html @@ -0,0 +1,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 }}
\ No newline at end of file |
