From a7d6e1c0f4d73ac1ff10bc001aef726f804120c2 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 3 Feb 2026 10:53:30 +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=82=D0=B0=D0=BA=D1=81=D0=BE=D0=BD=D0=BE=D0=BC=D0=B8=D1=8E=20?= =?UTF-8?q?=D0=B8=20=D0=B8=D0=B7=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/neonxp/layouts/_default/taxonomy.html | 20 ++++++++++++++++++++ themes/neonxp/layouts/_default/terms.html | 17 +++++++++++++++++ themes/neonxp/layouts/_partials/terms.html | 17 +++++++++++++++-- themes/neonxp/layouts/page.html | 2 ++ 4 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 themes/neonxp/layouts/_default/taxonomy.html create mode 100644 themes/neonxp/layouts/_default/terms.html (limited to 'themes/neonxp/layouts') diff --git a/themes/neonxp/layouts/_default/taxonomy.html b/themes/neonxp/layouts/_default/taxonomy.html new file mode 100644 index 0000000..ac5fc7d --- /dev/null +++ b/themes/neonxp/layouts/_default/taxonomy.html @@ -0,0 +1,20 @@ +{{ define "main" }} +
+

{{ .Title }}

+ {{ .Content }} +
+{{ range .Data.Pages }} +
+

{{ .LinkTitle }}

+ {{if .Date }} + {{ $dateMachine := .Date | time.Format "2006-01-02 15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format ":date_long" }} + + {{end}} +
+ {{ .Summary }} +
+ Читать дальше... +
+{{ end }} +{{ end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/_default/terms.html b/themes/neonxp/layouts/_default/terms.html new file mode 100644 index 0000000..49d993f --- /dev/null +++ b/themes/neonxp/layouts/_default/terms.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+

{{ i18n .Title }}

+ {{ .Content }} +
+
+ +
+{{ end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/_partials/terms.html b/themes/neonxp/layouts/_partials/terms.html index ec607ca..b666922 100644 --- a/themes/neonxp/layouts/_partials/terms.html +++ b/themes/neonxp/layouts/_partials/terms.html @@ -1,7 +1,20 @@ {{- $page := .page }} -{{- $taxonomy := .taxonomy }} -{{- with $page.GetTerms $taxonomy }} +{{- with $page.GetTerms "categories" }} +{{- if . }} +{{- $label := (index . 0).Parent.LinkTitle }} +
+

{{ i18n $label }}:

+ +
+{{- end }} +{{- end }} + +{{- with $page.GetTerms "tags" }} {{- if . }} {{- $label := (index . 0).Parent.LinkTitle }}
diff --git a/themes/neonxp/layouts/page.html b/themes/neonxp/layouts/page.html index 98ddec9..c28ab39 100644 --- a/themes/neonxp/layouts/page.html +++ b/themes/neonxp/layouts/page.html @@ -9,6 +9,8 @@
{{ .Content }}
+ +
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{if .Param "comments"}} -- cgit v1.2.3