From 001e5887bc7b8831dc1da4dbe42ee5cccf0225de Mon Sep 17 00:00:00 2001
From: Alexander Neonxp Kiryukhin
Date: Tue, 21 Apr 2026 20:46:33 +0300
Subject: 21.04.2026
---
content/_index.md | 2 +-
content/posts/2026-04-15-days/days.png | Bin 0 -> 162340 bytes
content/posts/2026-04-15-days/index.md | 19 ++
content/posts/2026-04-16-linux-baikal/index.md | 22 +++
content/posts/2026-04-21-keep-calm/index.md | 21 ++
content/projects/pwa/index.md | 8 +
go.mod | 5 -
go.sum | 2 -
hugo.yaml | 197 ++++++++++---------
themes/neonxp/archetypes/default.md | 8 +
themes/neonxp/assets/css/atom.css | 234 +++++++++++++++++++++++
themes/neonxp/assets/css/main.css | 185 ++++++++++++++++++
themes/neonxp/assets/css/paper.css | 184 ++++++++++++++++++
themes/neonxp/go.mod | 3 +
themes/neonxp/hugo.yaml | 18 ++
themes/neonxp/layouts/_default/section.atom.xml | 24 +++
themes/neonxp/layouts/_default/section.feed.json | 31 +++
themes/neonxp/layouts/_default/taxonomy.html | 20 ++
themes/neonxp/layouts/_default/terms.html | 17 ++
themes/neonxp/layouts/_partials/footer.html | 1 +
themes/neonxp/layouts/_partials/head.html | 12 ++
themes/neonxp/layouts/_partials/head/css.html | 27 +++
themes/neonxp/layouts/_partials/head/js.html | 16 ++
themes/neonxp/layouts/_partials/header.html | 2 +
themes/neonxp/layouts/_partials/menu.html | 50 +++++
themes/neonxp/layouts/_partials/terms.html | 29 +++
themes/neonxp/layouts/baseof.html | 17 ++
themes/neonxp/layouts/home.html | 16 ++
themes/neonxp/layouts/page.html | 50 +++++
themes/neonxp/layouts/pages/section.html | 23 +++
themes/neonxp/layouts/projects/section.html | 23 +++
themes/neonxp/layouts/section.html | 26 +++
themes/neonxp/layouts/shortcodes/img.html | 21 ++
themes/neonxp/layouts/taxonomy.html | 11 ++
themes/neonxp/layouts/term.html | 7 +
themes/neonxp/static/favicon.ico | Bin 0 -> 8772 bytes
36 files changed, 1222 insertions(+), 109 deletions(-)
create mode 100644 content/posts/2026-04-15-days/days.png
create mode 100644 content/posts/2026-04-15-days/index.md
create mode 100644 content/posts/2026-04-16-linux-baikal/index.md
create mode 100644 content/posts/2026-04-21-keep-calm/index.md
create mode 100644 content/projects/pwa/index.md
delete mode 100644 go.mod
delete mode 100644 go.sum
create mode 100644 themes/neonxp/archetypes/default.md
create mode 100644 themes/neonxp/assets/css/atom.css
create mode 100644 themes/neonxp/assets/css/main.css
create mode 100644 themes/neonxp/assets/css/paper.css
create mode 100644 themes/neonxp/go.mod
create mode 100644 themes/neonxp/hugo.yaml
create mode 100644 themes/neonxp/layouts/_default/section.atom.xml
create mode 100644 themes/neonxp/layouts/_default/section.feed.json
create mode 100644 themes/neonxp/layouts/_default/taxonomy.html
create mode 100644 themes/neonxp/layouts/_default/terms.html
create mode 100644 themes/neonxp/layouts/_partials/footer.html
create mode 100644 themes/neonxp/layouts/_partials/head.html
create mode 100644 themes/neonxp/layouts/_partials/head/css.html
create mode 100644 themes/neonxp/layouts/_partials/head/js.html
create mode 100644 themes/neonxp/layouts/_partials/header.html
create mode 100644 themes/neonxp/layouts/_partials/menu.html
create mode 100644 themes/neonxp/layouts/_partials/terms.html
create mode 100644 themes/neonxp/layouts/baseof.html
create mode 100644 themes/neonxp/layouts/home.html
create mode 100644 themes/neonxp/layouts/page.html
create mode 100644 themes/neonxp/layouts/pages/section.html
create mode 100644 themes/neonxp/layouts/projects/section.html
create mode 100644 themes/neonxp/layouts/section.html
create mode 100644 themes/neonxp/layouts/shortcodes/img.html
create mode 100644 themes/neonxp/layouts/taxonomy.html
create mode 100644 themes/neonxp/layouts/term.html
create mode 100644 themes/neonxp/static/favicon.ico
diff --git a/content/_index.md b/content/_index.md
index 422ba18..ff74139 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -2,7 +2,7 @@
title: Добро пожаловать!
---
-
+
Добро пожаловать на мой личный сервер.
diff --git a/content/posts/2026-04-15-days/days.png b/content/posts/2026-04-15-days/days.png
new file mode 100644
index 0000000..d51cac9
Binary files /dev/null and b/content/posts/2026-04-15-days/days.png differ
diff --git a/content/posts/2026-04-15-days/index.md b/content/posts/2026-04-15-days/index.md
new file mode 100644
index 0000000..32d5524
--- /dev/null
+++ b/content/posts/2026-04-15-days/index.md
@@ -0,0 +1,19 @@
+---
+title: Счётчик дней
+date: 2026-04-15T21:48:04+03:00
+tags: ["Моё"]
+category:
+ - Мои проекты
+---
+
+Сделал такое PWA. Позволяет отсчитывать дни от или до даты.
+
+https://days.neonxp.ru/
+
+
+
+Внутри просто JS + CSS + alpine.js (годная библиотека, рекомендую, если не охото особо заниматься фронтендом).
+
+100% вайбкода, 0% органического кода.
+
+[Исходники](https://gitverse.ru/neonxp/days)
diff --git a/content/posts/2026-04-16-linux-baikal/index.md b/content/posts/2026-04-16-linux-baikal/index.md
new file mode 100644
index 0000000..ae690d6
--- /dev/null
+++ b/content/posts/2026-04-16-linux-baikal/index.md
@@ -0,0 +1,22 @@
+---
+title: В ядре Linux 7.1 начали удаление поддержки процессоров Baikal
+date: 2026-04-16T17:29:30+03:00
+tags: ["linux"]
+category:
+ - Без категории
+---
+
+https://www.opennet.ru/opennews/art.shtml?num=65222
+
+Загнивает. А жаль. Видимо, и правда придётся или ждать хардфорка ядра в Альт
+или переезжать на *BSD. Последнего бы не очень хотелось, ведь хоть и ОС по
+отзывам и очень годная, но всё же целиком делают не наши. Да и нынче связана с
+нежелательной организацией. А это всё риски и намекает, что не стоит делать на
+неё ставку. Хотя и считаю что это уже чушь какая-то. Но «маемо шо маемо».
+
+А для меня, в свете событий последних лет, страна производства стало чуть ли не
+главнейшим критерием. И подобные новости только лишний раз убеждают в
+правильности такой позиции.
+
+Так что, да, буду надеяться, что ребята из Альта перейдут на поддерживаемый в РФ
+форк ядра (который ещё должен появиться!) в один прекрасный день.
diff --git a/content/posts/2026-04-21-keep-calm/index.md b/content/posts/2026-04-21-keep-calm/index.md
new file mode 100644
index 0000000..76f9545
--- /dev/null
+++ b/content/posts/2026-04-21-keep-calm/index.md
@@ -0,0 +1,21 @@
+---
+title: Помощник по дыханию
+date: 2026-04-21T20:36:36+03:00
+tags: ["моё"]
+category:
+ - Проекты
+---
+
+Сделал очередное мелкое PWA. В этот раз — помощник по правильным дыхательным
+техникам.
+
+https://calm.neonxp.ru/
+
+Получилось очень красиво, поэтому не буду прикладывать скриншота, дабы не
+портить впечатление ;)
+
+Всё так же как и в [прошлый раз](https://neonxp.ru/posts/2026-04-15-days/),
+100% вайбкода, 0% органического кода. Времени — минут 20-30 наверное.
+
+P.S. Завёл раздел для таких мелких PWA проектов:
+https://neonxp.ru/projects/pwa/ ведь на одном я явно не остановлюсь :)
diff --git a/content/projects/pwa/index.md b/content/projects/pwa/index.md
new file mode 100644
index 0000000..21286ae
--- /dev/null
+++ b/content/projects/pwa/index.md
@@ -0,0 +1,8 @@
+---
+title: "Мелкие PWA"
+---
+
+Мои маленькие навайбкоженные PWA (Progressive Web Applications).
+
+- https://days.neonxp.ru/ - счётчик дней от даты или до даты
+- https://calm.neonxp.ru/ - помощник по техникам дыхания
\ No newline at end of file
diff --git a/go.mod b/go.mod
deleted file mode 100644
index 1b2ff9a..0000000
--- a/go.mod
+++ /dev/null
@@ -1,5 +0,0 @@
-module neonxp.ru
-
-go 1.26
-
-require go.neonxp.ru/hugo/base v0.0.0-20260318094644-cd5341dff333 // indirect
diff --git a/go.sum b/go.sum
deleted file mode 100644
index 52b5c51..0000000
--- a/go.sum
+++ /dev/null
@@ -1,2 +0,0 @@
-go.neonxp.ru/hugo/base v0.0.0-20260318094644-cd5341dff333 h1:/Ev0KDJzYYYeZVCEjNGNxsBwgRMPTA3FWWTizsyG9uM=
-go.neonxp.ru/hugo/base v0.0.0-20260318094644-cd5341dff333/go.mod h1:+ASMSuFQ1wCIE/RDkjBKt/jxXWyuXfrbUDXmeVd8tzM=
diff --git a/hugo.yaml b/hugo.yaml
index 60c75d5..0e02619 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -2,119 +2,114 @@ baseURL: https://neonxp.ru/
languageCode: ru-ru
defaultContentLanguage: ru
title: ~/NeonXP.log
-theme: go.neonxp.ru/hugo/base
+theme: neonxp
enableEmoji: true
params:
- author: Александр Кирюхин
+ author: Александр Кирюхин
menus:
- main:
- - name: Главная
- pageRef: /
- pre:
- weight: 10
- - name: Блог
- pageRef: /posts
- pre:
- weight: 20
- - name: Теги
- pageRef: /tags
- pre:
- weight: 25
- - name: Категории
- pageRef: /categories
- pre:
- weight: 26
- - name: Проекты
- pageRef: /projects
- pre:
- weight: 30
- - name: Разное
- pageRef: /pages
- pre:
- weight: 40
- - name: Git
- url: https://git.neonxp.ru/
- pre:
- weight: 50
- - name: Go
- url: https://go.neonxp.ru/
- pre:
- weight: 55
- - name: Я
- pageRef: /me
- pre:
- weight: 60
- - name: Atom
- url: /feed/
- pre:
- weight: 70
+ main:
+ - name: Главная
+ pageRef: /
+ pre:
+ weight: 10
+ - name: Блог
+ pageRef: /posts
+ pre:
+ weight: 20
+ - name: Теги
+ pageRef: /tags
+ pre:
+ weight: 25
+ - name: Категории
+ pageRef: /categories
+ pre:
+ weight: 26
+ - name: Проекты
+ pageRef: /projects
+ pre:
+ weight: 30
+ - name: Разное
+ pageRef: /pages
+ pre:
+ weight: 40
+ - name: Git
+ url: https://git.neonxp.ru/
+ pre:
+ weight: 50
+ - name: Go
+ url: https://go.neonxp.ru/
+ pre:
+ weight: 55
+ - name: Я
+ pageRef: /me
+ pre:
+ weight: 60
+ - name: Atom
+ url: /feed/
+ pre:
+ weight: 70
taxonomies:
- tag: tags
- category: categories
-module:
- hugoVersion:
- extended: true
- min: 0.146.0
- imports:
- - path: go.neonxp.ru/hugo/base
+ tag: tags
+ category: categories
+
markup:
- goldmark:
- renderer:
- unsafe: true
- extensions:
- definitionList: true
- footnote: true
- linkify: true
- linkifyProtocol: https
- strikethrough: true
- table: true
- taskList: true
- parser:
- attribute:
- block: true
+ goldmark:
+ renderer:
+ unsafe: true
+ extensions:
+ definitionList: true
+ footnote: true
+ linkify: true
+ linkifyProtocol: https
+ strikethrough: true
+ table: true
+ taskList: true
+ parser:
+ attribute:
+ block: true
outputs:
- home:
- - html
- section:
- - html
- - atom
- - feed
- page:
- - html
- taxonomy:
- - html
- term:
- - html
+ home:
+ - html
+ section:
+ - html
+ - atom
+ - feed
+ page:
+ - html
+ taxonomy:
+ - html
+ term:
+ - html
outputFormats:
- atom:
- mediaType: "application/atom+xml"
- baseName: "atom"
- isHTML: false
- isPlainText: false
- noUgly: true
- rel: "alternate"
- feed:
- mediaType: "application/json"
- baseName: "feed"
- isHTML: false
- isPlainText: false
- noUgly: true
- rel: "alternate"
+ atom:
+ mediaType: "application/atom+xml"
+ baseName: "atom"
+ isHTML: false
+ isPlainText: false
+ noUgly: true
+ rel: "alternate"
+ feed:
+ mediaType: "application/json"
+ baseName: "feed"
+ isHTML: false
+ isPlainText: false
+ noUgly: true
+ rel: "alternate"
mediaTypes:
- application/atom+xml:
- suffixes:
- - xml
- application/json:
- suffixes:
- - json
+ application/atom+xml:
+ suffixes:
+ - xml
+ application/json:
+ suffixes:
+ - json
enableRobotsTXT: true
imaging:
- resampleFilter: Box
- quality: 75
- hint: photo
- anchor: Smart
+ resampleFilter: Box
+ quality: 75
+ hint: photo
+ anchor: Smart
diff --git a/themes/neonxp/archetypes/default.md b/themes/neonxp/archetypes/default.md
new file mode 100644
index 0000000..57e3501
--- /dev/null
+++ b/themes/neonxp/archetypes/default.md
@@ -0,0 +1,8 @@
+---
+title:
+date: "{{ .Date }}"
+tags:
+ -
+categories:
+ - Без категории
+---
diff --git a/themes/neonxp/assets/css/atom.css b/themes/neonxp/assets/css/atom.css
new file mode 100644
index 0000000..53b8503
--- /dev/null
+++ b/themes/neonxp/assets/css/atom.css
@@ -0,0 +1,234 @@
+/* Базовое отображение XML-элементов как блоков */
+feed,
+entry,
+title,
+link,
+updated,
+published,
+summary,
+content,
+author,
+name,
+email,
+uri,
+id {
+ display: block;
+}
+
+/* Скрываем служебные элементы */
+feed>id,
+feed>link[rel="self"],
+entry>id,
+entry>author,
+entry>link:not([rel="alternate"]) {
+ display: none;
+}
+
+/* Основной контейнер */
+feed {
+ max-width: 800px;
+ margin: 0 auto;
+ padding: 2rem 1rem;
+ font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
+ background-color: var(--bg, #101010);
+ color: var(--text, #a0a0a0);
+ line-height: 1.5;
+}
+
+/* Заголовок блога */
+feed>title {
+ font-size: 2.5rem;
+ font-weight: bold;
+ margin-bottom: 0.5rem;
+ color: var(--link-color, #a73afd);
+ border-bottom: 2px solid var(--border, #909090);
+ padding-bottom: 0.5rem;
+}
+
+/* Информация об авторе (только в корне) */
+feed>author {
+ display: flex;
+ gap: 1rem;
+ margin-bottom: 2rem;
+ color: var(--text-secondary, #909090);
+ font-size: 0.95rem;
+}
+
+feed>author>name {
+ font-weight: 600;
+}
+
+feed>author>email,
+feed>author>uri {
+ display: inline-block;
+}
+
+feed>author>uri {
+ word-break: break-all;
+}
+
+/* Дата обновления ленты */
+feed>updated {
+ margin-bottom: 2rem;
+ font-style: italic;
+ color: var(--text-secondary, #909090);
+}
+
+feed>updated::before {
+ content: "Обновлено: ";
+ font-style: normal;
+}
+
+/* Карточка записи */
+entry {
+ margin-bottom: 2.5rem;
+ padding: 1.5rem;
+ background-color: var(--surface, #010101);
+ border-radius: 8px;
+ box-shadow: var(--shadow, 0 2px 8px rgba(0, 0, 0, 0.2));
+ border: 1px solid var(--border, #909090);
+}
+
+/* Заголовок записи */
+entry>title {
+ font-size: 1.8rem;
+ font-weight: 600;
+ margin-bottom: 0.75rem;
+ color: var(--link-color, #a73afd);
+ line-height: 1.3;
+}
+
+/* Ссылка на полный пост */
+entry>link[rel="alternate"] {
+ display: inline-block;
+ margin-bottom: 1rem;
+ font-size: 0.9rem;
+}
+
+entry>link[rel="alternate"]::before {
+ content: "🔗 Читать полностью: ";
+ color: var(--text-secondary, #909090);
+}
+
+entry>link[rel="alternate"]::after {
+ content: attr(href);
+ display: inline-block;
+ margin-left: 0.25rem;
+ color: var(--link-color, #a73afd);
+ text-decoration: underline;
+ text-underline-offset: 2px;
+ word-break: break-all;
+}
+
+/* Даты */
+entry>published,
+entry>updated {
+ display: inline-block;
+ margin-right: 1.5rem;
+ margin-bottom: 1rem;
+ font-size: 0.9rem;
+ color: var(--text-secondary, #909090);
+}
+
+entry>published::before {
+ content: "📅 Опубликовано: ";
+}
+
+entry>updated::before {
+ content: "🔄 Обновлено: ";
+}
+
+/* Краткое содержание */
+entry>summary {
+ margin: 1rem 0;
+ padding: 1rem;
+ background-color: rgba(255, 255, 255, 0.03);
+ border-left: 3px solid var(--link-color, #a73afd);
+ border-radius: 0 4px 4px 0;
+ font-size: 1rem;
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+
+entry>summary::before {
+ content: "📋 Аннотация";
+ display: block;
+ font-weight: bold;
+ margin-bottom: 0.75rem;
+ color: var(--text-secondary, #909090);
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ font-size: 0.8rem;
+}
+
+/* Полное содержание */
+entry>content {
+ margin-top: 1.5rem;
+ padding-top: 1rem;
+ border-top: 1px dashed var(--border, #909090);
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+
+entry>content::before {
+ content: "📄 Полный текст";
+ display: block;
+ font-weight: bold;
+ margin-bottom: 1rem;
+ color: var(--text-secondary, #909090);
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ font-size: 0.8rem;
+}
+
+/* Адаптивность */
+@media (max-width: 600px) {
+ feed {
+ padding: 1rem 0.75rem;
+ }
+
+ feed>title {
+ font-size: 2rem;
+ }
+
+ entry {
+ padding: 1rem;
+ }
+
+ entry>title {
+ font-size: 1.5rem;
+ }
+}
+
+/* Цветовые переменные */
+:root {
+ --bg: #101010;
+ --surface: #010101;
+ --border: #909090;
+ --text: #a0a0a0;
+ --text-secondary: #909090;
+ --shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
+ --link-color: #a73afd;
+}
+
+/* Печатная версия */
+@media print {
+ feed {
+ background: white;
+ color: black;
+ }
+
+ entry {
+ box-shadow: none;
+ border: 1px solid #ccc;
+ background: white;
+ }
+
+ entry>title {
+ color: black;
+ }
+
+ entry>link[rel="alternate"]::after {
+ color: black;
+ }
+}
\ No newline at end of file
diff --git a/themes/neonxp/assets/css/main.css b/themes/neonxp/assets/css/main.css
new file mode 100644
index 0000000..6c0d4e1
--- /dev/null
+++ b/themes/neonxp/assets/css/main.css
@@ -0,0 +1,185 @@
+:root {
+ --border-radius: 4px;
+ --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
+}
+
+@media (prefers-color-scheme: dark) {
+ :root {
+ --shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
+ }
+}
+
+h1 {
+ line-height: 2.5rem;
+}
+
+h1 a,
+h2 a,
+h3 a,
+h4 a,
+h5 a,
+h6 a {
+ text-decoration: none;
+}
+
+nav {
+ margin-top: 1rem;
+}
+
+nav ul {
+ padding: 0;
+ margin: 0;
+ display: flex;
+ justify-content: space-between;
+}
+
+nav ul li {
+ list-style: none;
+ display: inline-block;
+ border: 0.1px solid var(--link-color);
+ border-radius: var(--border-radius);
+}
+
+nav ul li a {
+ padding: 0.5rem 1rem;
+ text-decoration: none;
+ display: inline-block;
+ width: auto;
+ line-height: 1.5rem;
+}
+
+nav ul li a:hover {
+ background-color: color-mix(in srgb, var(--link-color) 10%, transparent);
+}
+
+nav ul li a.active {
+ background-color: color-mix(in srgb, var(--link-color) 10%, transparent);
+}
+
+@media (max-width: 900px) {
+ nav ul {
+ display: block;
+ }
+
+ nav ul li {
+ display: block;
+ border-radius: 0;
+ }
+
+ nav ul:first-child {
+ border-radius: var(--border-radius)
+ }
+
+ nav ul li a {
+ display: block;
+ }
+}
+
+ul.taxonomy {
+ display: block;
+ padding: 0;
+ margin: 0.5rem 0;
+}
+
+ul.taxonomy li {
+ list-style: none;
+ 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;
+ margin: 0.5rem 0;
+}
+
+ul.pagination li {
+ display: inline;
+ list-style: none;
+}
+
+ul.pagination li.active a {
+ background-color: color-mix(in srgb, var(--link-color) 10%, transparent);
+}
+
+ul.pagination li a {
+ padding: 0.5rem 1rem;
+ border: 0.1px solid var(--link-color);
+ border-radius: var(--border-radius);
+ text-decoration: none;
+ line-height: 3rem;
+}
+
+ul.pagination li a:hover {
+ background-color: color-mix(in srgb, var(--link-color) 10%, transparent);
+}
+
+ul.pagination li:first-child a {
+ margin-left: 0;
+}
+
+pre {
+ border-radius: var(--border-radius);
+ border: 0.1px solid var(--border);
+ padding: 0.5rem;
+}
+
+time {
+ width: 100%;
+ text-align: right;
+ color: #a0a0a0;
+ font-size: 10pt;
+ border-top: 1px dotted var(--border);
+ margin-top: 5px;
+ display: block;
+}
+
+img {
+ border-radius: var(--border-radius);
+}
+
+.menu-icon {
+ height: 24px;
+ width: 24px;
+ border-radius: 0;
+ margin-bottom: -0.5rem;
+}
+
+a.btn-primary {
+ display: inline-block;
+ padding: 0.5rem 1rem;
+ margin: 1rem 0;
+ border: 0.1px solid var(--link-color);
+ border-radius: var(--border-radius);
+ text-decoration: none;
+}
+
+a.btn-primary:hover {
+ background-color: color-mix(in srgb, var(--link-color) 10%, transparent);
+}
\ No newline at end of file
diff --git a/themes/neonxp/assets/css/paper.css b/themes/neonxp/assets/css/paper.css
new file mode 100644
index 0000000..07089d0
--- /dev/null
+++ b/themes/neonxp/assets/css/paper.css
@@ -0,0 +1,184 @@
+html,
+body {
+ padding: 0px;
+ margin: 0px;
+ border: none;
+}
+
+*,
+*::before,
+*::after {
+ box-sizing: border-box;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin: 0;
+ /* line-height: 1; */
+}
+
+:root {
+ --bg: #ffffff;
+ --surface: #f8f9fa;
+ --border: #e3e3e3;
+ --text: #2e2e2e;
+ --text-secondary: #6c757d;
+ --link-color: #a73afd;
+}
+
+@media (prefers-color-scheme: dark) {
+ :root {
+ --bg: #101010;
+ --surface: #010101;
+ --border: #909090;
+ --text: #a0a0a0;
+ --text-secondary: #909090;
+ --shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
+ --link-color: #a73afd;
+ }
+}
+
+@media print {
+
+ *,
+ *:before,
+ *:after,
+ *:first-letter,
+ p:first-line,
+ div:first-line,
+ blockquote:first-line,
+ li:first-line {
+ background: transparent !important;
+ color: #000 !important;
+ box-shadow: none !important;
+ text-shadow: none !important;
+ }
+
+ :root {
+ --main-color: #000;
+ --background-color: #fff;
+ --main-background-color: #fff;
+ }
+
+ main {
+ font-size: 12pt !important;
+ line-height: 1.4 !important;
+ --background-color: #fff !important;
+ }
+
+ header {
+ display: none;
+ }
+
+ footer {
+ display: none;
+ }
+
+ article {
+ page-break-after: always;
+ border: 0 !important;
+ padding: 0 !important;
+ }
+
+ a[href] {
+ color: #000;
+ }
+}
+
+html {
+ background-color: var(--surface);
+ display: flex;
+ justify-content: center;
+ flex-direction: row;
+}
+
+body {
+ color: var(--text);
+ font-family: Arial, Helvetica, sans-serif;
+ line-height: 1.5;
+ width: 100%;
+ max-width: 1200px;
+}
+
+a {
+ color: var(--link-color);
+}
+
+header,
+footer {
+ padding: 0 2rem;
+}
+
+main {
+ padding: 0 2rem;
+}
+
+article {
+ background-color: var(--bg);
+ padding: 1.5em 2em;
+ margin: 1em 0;
+ border: 0.1px solid var(--border);
+ word-break: break-word;
+}
+
+article p {
+ orphans: 3;
+ widows: 4;
+ text-align: justify;
+}
+
+figure {
+ max-width: 800px;
+}
+
+img {
+ max-width: 100%;
+}
+
+@media (max-width: 900px) {
+ main {
+ font-size: 15px;
+ line-height: 1.5;
+ padding: 0 0.5em;
+ }
+
+ header,
+ footer {
+ padding: 0 0.5rem;
+ }
+
+ article {
+ padding: 0.5em;
+ }
+
+ .no-mobile {
+ display: none;
+ }
+}
+
+@media (max-width: 480px) {
+ main {
+ font-size: 14px;
+ line-height: 1.4;
+ padding: 0 0.1em;
+ }
+
+ header,
+ footer {
+ padding: 0 0.1rem;
+ }
+
+ article {
+ padding: 0.5em 0.5em;
+ }
+}
+
+pre,
+code {
+ max-width: 100%;
+ overflow-x: scroll;
+}
\ No newline at end of file
diff --git a/themes/neonxp/go.mod b/themes/neonxp/go.mod
new file mode 100644
index 0000000..ccf3fc8
--- /dev/null
+++ b/themes/neonxp/go.mod
@@ -0,0 +1,3 @@
+module go.neonxp.ru/hugo/base
+
+go 1.25.7
diff --git a/themes/neonxp/hugo.yaml b/themes/neonxp/hugo.yaml
new file mode 100644
index 0000000..4177323
--- /dev/null
+++ b/themes/neonxp/hugo.yaml
@@ -0,0 +1,18 @@
+baseURL: https://example.org/
+languageCode: en-US
+title: My New Hugo Site
+menus:
+ main:
+ - name: Home
+ pageRef: /
+ weight: 10
+ - name: Posts
+ pageRef: /posts
+ weight: 20
+ - name: Tags
+ pageRef: /tags
+ weight: 30
+module:
+ hugoVersion:
+ extended: false
+ min: 0.146.0
diff --git a/themes/neonxp/layouts/_default/section.atom.xml b/themes/neonxp/layouts/_default/section.atom.xml
new file mode 100644
index 0000000..58ef568
--- /dev/null
+++ b/themes/neonxp/layouts/_default/section.atom.xml
@@ -0,0 +1,24 @@
+{{ print ""| safeHTML }}
+{{ print ""| safeHTML }}
+
{{ .Title }}
+ {{ .Content }}
+{{ .LinkTitle }}
+ {{if .Date }}
+ {{ $dateMachine := .Date | time.Format "2006-01-02 15:04:05-07:00" }}
+ {{ $dateHuman := .Date | time.Format ":date_long" }}
+
+ {{end}}
+ {{ i18n .Title }}
+ {{ .Content }}
+
+ {{ range $key, $value := .Data.Terms }}
+ {{ $postCount := len $value.Pages -}}
+
+
+
© 2007 — {{ now.Year }} Александр NeonXP Кирюхин. i@neonxp.ru
\ No newline at end of file diff --git a/themes/neonxp/layouts/_partials/head.html b/themes/neonxp/layouts/_partials/head.html new file mode 100644 index 0000000..7826e2a --- /dev/null +++ b/themes/neonxp/layouts/_partials/head.html @@ -0,0 +1,12 @@ + + + +{{ partial "opengraph.html" . }} ++ {{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}}
+