From 49458f5ffd5a48c465117ec27f6437683f75acc1 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sat, 31 Jan 2026 20:38:50 +0300 Subject: initial --- themes/neonxp/layouts/page.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..506b56a --- /dev/null +++ b/themes/neonxp/layouts/page.html @@ -0,0 +1,37 @@ +{{ 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 "url" "eq" .Page.Path }} +
+ {{$comment.from}}: +

{{$comment.comment}}

+
+ {{ 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