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/archetypes/default.md | 2 +- themes/neonxp/assets/css/main.css | 27 +++++++++++++++++++++++++++ themes/neonxp/assets/css/paper.css | 6 +++++- 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 ++ 7 files changed, 87 insertions(+), 4 deletions(-) create mode 100644 themes/neonxp/layouts/_default/taxonomy.html create mode 100644 themes/neonxp/layouts/_default/terms.html (limited to 'themes') diff --git a/themes/neonxp/archetypes/default.md b/themes/neonxp/archetypes/default.md index 51ad09a..57e3501 100644 --- a/themes/neonxp/archetypes/default.md +++ b/themes/neonxp/archetypes/default.md @@ -4,5 +4,5 @@ date: "{{ .Date }}" tags: - categories: - - + - Без категории --- diff --git a/themes/neonxp/assets/css/main.css b/themes/neonxp/assets/css/main.css index de6f9d5..7edc2db 100644 --- a/themes/neonxp/assets/css/main.css +++ b/themes/neonxp/assets/css/main.css @@ -52,6 +52,33 @@ ul.taxonomy li { display: inline; } +ul.taxonomy li::after { + content: " | "; +} + +ul.taxonomy li:last-child::after { + content: ""; +} + +ul.terms { + display: block; + padding: 0; + margin: 0.5rem 0; +} + +ul.terms li { + list-style: none; + display: inline; +} + +ul.terms li::after { + content: " | "; +} + +ul.terms li:last-child::after { + content: ""; +} + ul.pagination { display: block; padding: 0; diff --git a/themes/neonxp/assets/css/paper.css b/themes/neonxp/assets/css/paper.css index f75495e..35130ab 100644 --- a/themes/neonxp/assets/css/paper.css +++ b/themes/neonxp/assets/css/paper.css @@ -133,8 +133,12 @@ p { widows: 4; } +figure { + max-width: 800px; +} + figure img { - max-width: 600px; + width: 100%; } @media (max-width: 900px) { 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