From fce8e1d3284eec6c87dc407957e632c5f3ee3b46 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 1 Feb 2026 18:08:34 +0300 Subject: =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/neonxp/assets/css/main.css | 1 - themes/neonxp/layouts/_partials/terms.html | 31 ++++-------- themes/neonxp/layouts/page.html | 75 +++++++++++++++++------------- 3 files changed, 53 insertions(+), 54 deletions(-) (limited to 'themes/neonxp') diff --git a/themes/neonxp/assets/css/main.css b/themes/neonxp/assets/css/main.css index 6778acd..8402203 100644 --- a/themes/neonxp/assets/css/main.css +++ b/themes/neonxp/assets/css/main.css @@ -150,7 +150,6 @@ ul.pagination li:first-child a { pre { border-radius: var(--border-radius); border: 0.1px solid var(--border); - box-shadow: var(--shadow); padding: 0.5rem; } diff --git a/themes/neonxp/layouts/_partials/terms.html b/themes/neonxp/layouts/_partials/terms.html index f826abb..ec607ca 100644 --- a/themes/neonxp/layouts/_partials/terms.html +++ b/themes/neonxp/layouts/_partials/terms.html @@ -1,27 +1,16 @@ -{{- /* -For a given taxonomy, renders a list of terms assigned to the page. - -@context {page} page The current page. -@context {string} taxonomy The taxonomy. - -@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} -*/}} - {{- $page := .page }} {{- $taxonomy := .taxonomy }} {{- with $page.GetTerms $taxonomy }} {{- if . }} -
- {{- $label := (index . 0).Parent.LinkTitle }} -
-

{{ $label }}:

- -
- {{- end }} -
+{{- $label := (index . 0).Parent.LinkTitle }} +
+

{{ i18n $label }}:

+ +
+{{- end }} {{- end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/page.html b/themes/neonxp/layouts/page.html index 506b56a..6bc6380 100644 --- a/themes/neonxp/layouts/page.html +++ b/themes/neonxp/layouts/page.html @@ -1,37 +1,48 @@ {{ define "main" }} -
-
-

{{ .Title }}

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

{{ .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, в теме нужно указать ссылку на - пост.
- Или просто нажать кнопку ниже. Всё очень просто :)
- Написать комментарий -
+ +{{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