From 001e5887bc7b8831dc1da4dbe42ee5cccf0225de Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 21 Apr 2026 20:46:33 +0300 Subject: 21.04.2026 --- themes/neonxp/layouts/page.html | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 themes/neonxp/layouts/page.html (limited to 'themes/neonxp/layouts/page.html') diff --git a/themes/neonxp/layouts/page.html b/themes/neonxp/layouts/page.html new file mode 100644 index 0000000..c28ab39 --- /dev/null +++ b/themes/neonxp/layouts/page.html @@ -0,0 +1,50 @@ +{{ define "main" }} +
+

{{ .Title }}

+ {{if .Date }} + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format ":date_long" }} + + {{end}} +
+ {{ .Content }} +
+
+
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +
+{{if .Param "comments"}} +

Комментарии

+{{ range $key, $comment := where .Site.Data.comments "subject" "eq" .Page.Permalink }} +
+ {{$comment.from_name}}: +

+ {{if $comment.date }} + {{ $dateMachine := $comment.date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := $comment.date | time.Format ":date_long" }} + + {{end}} +

+

{{$comment.body | safeHTML}}

+ {{if $comment.body_signature}} +
+ Подпись +
{{$comment.body_signature| safeHTML}}
+
+ {{end}} +
+{{ else }} +
Комментариев пока нет.
+{{ end }} + +
+ {{ $comment := (print "mailto:blog@neonxp.ru?subject=" .Page.Permalink | safeHTML) }} + Для отправки комментария достаточно отправить e-mail со своим комментарием + на адрес + blog@neonxp.ru, в теме нужно указать ссылку на + пост.
+ Или просто нажать кнопку ниже. Всё очень просто :)
+ Написать комментарий +
+{{end}} +{{ end }} \ No newline at end of file -- cgit v1.2.3