From 2ecb959c5b9c2b0750212af0349fd6d4a5c25258 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 10 Feb 2026 17:11:24 +0300 Subject: =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D1=8B=D0=B9=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/page.html | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 layouts/page.html (limited to 'layouts/page.html') diff --git a/layouts/page.html b/layouts/page.html new file mode 100644 index 0000000..c28ab39 --- /dev/null +++ b/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