From d8b5023d7269fd67374cf65a1372e374b41964e0 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sat, 14 Feb 2026 13:06:23 +0300 Subject: New post, didaceted theme --- themes/neonxp/layouts/_default/section.atom.xml | 23 ----------- 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 ---- 20 files changed, 422 deletions(-) delete mode 100644 themes/neonxp/layouts/_default/section.atom.xml delete mode 100644 themes/neonxp/layouts/_default/section.feed.json delete mode 100644 themes/neonxp/layouts/_default/taxonomy.html delete mode 100644 themes/neonxp/layouts/_default/terms.html delete mode 100644 themes/neonxp/layouts/_partials/footer.html delete mode 100644 themes/neonxp/layouts/_partials/head.html delete mode 100644 themes/neonxp/layouts/_partials/head/css.html delete mode 100644 themes/neonxp/layouts/_partials/head/js.html delete mode 100644 themes/neonxp/layouts/_partials/header.html delete mode 100644 themes/neonxp/layouts/_partials/menu.html delete mode 100644 themes/neonxp/layouts/_partials/terms.html delete mode 100644 themes/neonxp/layouts/baseof.html delete mode 100644 themes/neonxp/layouts/home.html delete mode 100644 themes/neonxp/layouts/page.html delete mode 100644 themes/neonxp/layouts/pages/section.html delete mode 100644 themes/neonxp/layouts/projects/section.html delete mode 100644 themes/neonxp/layouts/section.html delete mode 100644 themes/neonxp/layouts/shortcodes/img.html delete mode 100644 themes/neonxp/layouts/taxonomy.html delete mode 100644 themes/neonxp/layouts/term.html (limited to 'themes/neonxp/layouts') diff --git a/themes/neonxp/layouts/_default/section.atom.xml b/themes/neonxp/layouts/_default/section.atom.xml deleted file mode 100644 index 9ddb7d2..0000000 --- a/themes/neonxp/layouts/_default/section.atom.xml +++ /dev/null @@ -1,23 +0,0 @@ -{{ print ""| safeHTML }} -{{ print ""| safeHTML }} - - {{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }} - - {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} - - Alexander NeonXP Kiryukhin - i@neonxp.ru - https://neonxp.ru/ - - {{ .Permalink }} - {{ range first 15 .Data.Pages }} - - {{ .Title }} - - {{ .Permalink }} - {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} - {{ .Lastmod.Format "2006-01-02T15:04:05-0700" | safeHTML }} - {{ .Content | html }} - - {{ end }} - diff --git a/themes/neonxp/layouts/_default/section.feed.json b/themes/neonxp/layouts/_default/section.feed.json deleted file mode 100644 index d7d70d0..0000000 --- a/themes/neonxp/layouts/_default/section.feed.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "version": "https://jsonfeed.org/version/1", - "title": {{ .Site.Title | jsonify }}, - "home_page_url": {{ .Permalink | jsonify }}, - {{ with .OutputFormats.Get "json" -}} - "feed_url": {{ .Permalink | jsonify }}, - {{- end }} - {{- if .Site.Params.author -}} - "author": { - "name": {{ .Site.Params.author | jsonify }} - }, - {{ end -}} - {{- if .Data.Pages -}} - "items": [ - {{ range $index, $element := first 10 .Data.Pages -}} - {{ if $index }},{{end}} { - "title": {{ $element.Title | jsonify }}, - "id": {{ $element.Permalink | jsonify }}, - "url": {{ $element.Permalink | jsonify }}, - "summary": {{ $element.Summary | jsonify }}, - {{- if eq $element.Type "link" -}} - "external_url": {{ $element.Params.link | jsonify }}, - {{- end -}} - "content_html": {{ $element.Content | jsonify }}, - "content_text": {{ $element.Plain | jsonify }}, - "date_published": {{ $element.Date.Format "2006-02-01T15:04:05-0700" | jsonify }} - } - {{- end }} - ] - {{ end -}} -} \ No newline at end of file diff --git a/themes/neonxp/layouts/_default/taxonomy.html b/themes/neonxp/layouts/_default/taxonomy.html deleted file mode 100644 index ac5fc7d..0000000 --- a/themes/neonxp/layouts/_default/taxonomy.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ 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 deleted file mode 100644 index 49d993f..0000000 --- a/themes/neonxp/layouts/_default/terms.html +++ /dev/null @@ -1,17 +0,0 @@ -{{ define "main" }} -
-

{{ i18n .Title }}

- {{ .Content }} -
-
- -
-{{ end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/_partials/footer.html b/themes/neonxp/layouts/_partials/footer.html deleted file mode 100644 index 2c30eaa..0000000 --- a/themes/neonxp/layouts/_partials/footer.html +++ /dev/null @@ -1 +0,0 @@ -

© 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 deleted file mode 100644 index 7826e2a..0000000 --- a/themes/neonxp/layouts/_partials/head.html +++ /dev/null @@ -1,12 +0,0 @@ - - - -{{ partial "opengraph.html" . }} - - {{ if .IsHome }} - {{ site.Title }} - {{ else }} - {{ printf "%s | %s" .Title site.Title }} - {{ end }} - -{{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} \ No newline at end of file diff --git a/themes/neonxp/layouts/_partials/head/css.html b/themes/neonxp/layouts/_partials/head/css.html deleted file mode 100644 index 9324758..0000000 --- a/themes/neonxp/layouts/_partials/head/css.html +++ /dev/null @@ -1,27 +0,0 @@ -{{- with resources.Get "css/reset.css" }} -{{- if hugo.IsDevelopment }} - -{{- else }} -{{- with . | minify | fingerprint }} - -{{- end }} -{{- end }} -{{- end }} -{{- with resources.Get "css/paper.css" }} -{{- if hugo.IsDevelopment }} - -{{- else }} -{{- with . | minify | fingerprint }} - -{{- end }} -{{- end }} -{{- end }} -{{- with resources.Get "css/main.css" }} -{{- if hugo.IsDevelopment }} - -{{- else }} -{{- with . | minify | fingerprint }} - -{{- end }} -{{- end }} -{{- end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/_partials/head/js.html b/themes/neonxp/layouts/_partials/head/js.html deleted file mode 100644 index 1b7c18e..0000000 --- a/themes/neonxp/layouts/_partials/head/js.html +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/themes/neonxp/layouts/_partials/header.html b/themes/neonxp/layouts/_partials/header.html deleted file mode 100644 index 7980a00..0000000 --- a/themes/neonxp/layouts/_partials/header.html +++ /dev/null @@ -1,2 +0,0 @@ -

{{ site.Title }}

-{{ partial "menu.html" (dict "menuID" "main" "page" .) }} diff --git a/themes/neonxp/layouts/_partials/menu.html b/themes/neonxp/layouts/_partials/menu.html deleted file mode 100644 index ebad53f..0000000 --- a/themes/neonxp/layouts/_partials/menu.html +++ /dev/null @@ -1,50 +0,0 @@ -{{- /* -Renders a menu for the given menu ID. - -@context {page} page The current page. -@context {string} menuID The menu ID. - -@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }} -*/}} - -{{- $page := .page }} -{{- $menuID := .menuID }} - -{{- with index site.Menus $menuID }} - -{{- end }} - -{{- define "_partials/inline/menu/walk.html" }} -{{- $page := .page }} -{{- range .menuEntries }} -{{- $attrs := dict "href" .URL }} -{{- if $page.IsMenuCurrent .Menu . }} -{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} -{{- else if $page.HasMenuCurrent .Menu .}} -{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} -{{- end }} -{{- $name := .Name }} -{{- with .Identifier }} -{{- with T . }} -{{- $name = . }} -{{- end }} -{{- end }} -
  • - - {{if .Pre}} - {{.Pre}} - {{end}} - {{ $name }} - - {{- with .Children }} - - {{- end }} -
  • -{{- end }} -{{- end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/_partials/terms.html b/themes/neonxp/layouts/_partials/terms.html deleted file mode 100644 index b666922..0000000 --- a/themes/neonxp/layouts/_partials/terms.html +++ /dev/null @@ -1,29 +0,0 @@ -{{- $page := .page }} - -{{- with $page.GetTerms "categories" }} -{{- if . }} -{{- $label := (index . 0).Parent.LinkTitle }} -
    -

    {{ i18n $label }}:

    - -
    -{{- end }} -{{- end }} - -{{- with $page.GetTerms "tags" }} -{{- if . }} -{{- $label := (index . 0).Parent.LinkTitle }} -
    -

    {{ i18n $label }}:

    - -
    -{{- end }} -{{- end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/baseof.html b/themes/neonxp/layouts/baseof.html deleted file mode 100644 index 39dcbec..0000000 --- a/themes/neonxp/layouts/baseof.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - {{ partial "head.html" . }} - - -
    - {{ partial "header.html" . }} -
    -
    - {{ block "main" . }}{{ end }} -
    - - - diff --git a/themes/neonxp/layouts/home.html b/themes/neonxp/layouts/home.html deleted file mode 100644 index c643012..0000000 --- a/themes/neonxp/layouts/home.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" }} -
    -

    {{ .Title }}

    - {{ .Content }} -
    -
    - {{ range .Pages }} - - {{ end }} -
    -{{ end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/page.html b/themes/neonxp/layouts/page.html deleted file mode 100644 index c28ab39..0000000 --- a/themes/neonxp/layouts/page.html +++ /dev/null @@ -1,50 +0,0 @@ -{{ 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 "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 diff --git a/themes/neonxp/layouts/pages/section.html b/themes/neonxp/layouts/pages/section.html deleted file mode 100644 index cc60509..0000000 --- a/themes/neonxp/layouts/pages/section.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ define "main" }} -
    -

    {{ .Title }}

    - {{ .Content }} -
    -
    - - {{ range .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/projects/section.html b/themes/neonxp/layouts/projects/section.html deleted file mode 100644 index cc60509..0000000 --- a/themes/neonxp/layouts/projects/section.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ define "main" }} -
    -

    {{ .Title }}

    - {{ .Content }} -
    -
    - - {{ range .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/section.html b/themes/neonxp/layouts/section.html deleted file mode 100644 index 5d3a4ba..0000000 --- a/themes/neonxp/layouts/section.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ define "main" }} -
    -

    {{ .Title }}

    - {{ .Content }} -
    -
    - - {{ range .Paginator.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 }} -
    - {{ template "_internal/pagination.html" . }} -
    -
    -{{ end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/shortcodes/img.html b/themes/neonxp/layouts/shortcodes/img.html deleted file mode 100644 index 994e30f..0000000 --- a/themes/neonxp/layouts/shortcodes/img.html +++ /dev/null @@ -1,21 +0,0 @@ -{{- $alt := .Get "alt" -}} -{{- $res := .Page.Resources.Get (.Get "src") -}} - -{{- $ws := slice 480 800 -}} -{{- $srcset := slice -}} -{{- range $ws -}} -{{- if (le . $res.Width) -}} -{{- $w := printf "%dx" . -}} -{{- $url := ($res.Resize $w).RelPermalink | safeURL -}} -{{- $fmt := printf "%s %dw" $url . -}} -{{- $srcset = $srcset | append $fmt -}} -{{- end -}} -{{- end -}} - -{{- $set := delimit $srcset "," -}} - -
    - {{ $alt }} -
    {{ $alt }}
    -
    \ No newline at end of file diff --git a/themes/neonxp/layouts/taxonomy.html b/themes/neonxp/layouts/taxonomy.html deleted file mode 100644 index ff8e552..0000000 --- a/themes/neonxp/layouts/taxonomy.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ define "main" }} -
    -

    {{ .Title }}

    - {{ .Content }} -
    -
    - {{ range .Pages }} -

    {{ .LinkTitle }}

    - {{ end }} -
    -{{ end }} \ No newline at end of file diff --git a/themes/neonxp/layouts/term.html b/themes/neonxp/layouts/term.html deleted file mode 100644 index c2e7875..0000000 --- a/themes/neonxp/layouts/term.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} -

    {{ .Title }}

    - {{ .Content }} - {{ range .Pages }} -

    {{ .LinkTitle }}

    - {{ end }} -{{ end }} -- cgit v1.2.3