summaryrefslogtreecommitdiff
path: root/themes/neonxp/layouts/_default
diff options
context:
space:
mode:
author2026-02-14 13:06:23 +0300
committer2026-02-14 13:06:23 +0300
commitd8b5023d7269fd67374cf65a1372e374b41964e0 (patch)
tree661c2901040fa3200e379d9ecfdd5ee941a867d6 /themes/neonxp/layouts/_default
parentПост про stplr (diff)
downloadblog-d8b5023d7269fd67374cf65a1372e374b41964e0.tar.gz
blog-d8b5023d7269fd67374cf65a1372e374b41964e0.tar.bz2
blog-d8b5023d7269fd67374cf65a1372e374b41964e0.tar.xz
blog-d8b5023d7269fd67374cf65a1372e374b41964e0.zip
New post, didaceted theme
Diffstat (limited to 'themes/neonxp/layouts/_default')
-rw-r--r--themes/neonxp/layouts/_default/section.atom.xml23
-rw-r--r--themes/neonxp/layouts/_default/section.feed.json31
-rw-r--r--themes/neonxp/layouts/_default/taxonomy.html20
-rw-r--r--themes/neonxp/layouts/_default/terms.html17
4 files changed, 0 insertions, 91 deletions
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 "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>"| safeHTML }}
-{{ print "<?xml-stylesheet type=\"text/css\" href=\"/css/atom.css\" ?>"| safeHTML }}
-<feed xmlns="http://www.w3.org/2005/Atom">
- <title>{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}</title>
- <link rel="self" href="{{ .Permalink }}"/>
- <updated>{{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated>
- <author>
- <name>Alexander NeonXP Kiryukhin</name>
- <email>i@neonxp.ru</email>
- <uri>https://neonxp.ru/</uri>
- </author>
- <id>{{ .Permalink }}</id>
- {{ range first 15 .Data.Pages }}
- <entry>
- <title>{{ .Title }}</title>
- <link rel="alternate" href="{{ .Permalink }}"/>
- <id>{{ .Permalink }}</id>
- <published>{{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }}</published>
- <updated>{{ .Lastmod.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated>
- <summary>{{ .Content | html }}</summary>
- </entry>
- {{ end }}
-</feed>
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" }}
-<article>
- <h1>{{ .Title }}</h1>
- {{ .Content }}
-</article>
-{{ range .Data.Pages }}
-<article class="h-entry">
- <h2 class="p-name"><a class="u-url" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
- {{if .Date }}
- {{ $dateMachine := .Date | time.Format "2006-01-02 15:04:05-07:00" }}
- {{ $dateHuman := .Date | time.Format ":date_long" }}
- <time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
- {{end}}
- <div class="p-summary">
- {{ .Summary }}
- </div>
- <a class="btn-primary" href="{{ .RelPermalink }}">Читать дальше...</a>
-</article>
-{{ 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" }}
-<article>
- <h1>{{ i18n .Title }}</h1>
- {{ .Content }}
-</article>
-<article>
- <ul class="terms">
- {{ range $key, $value := .Data.Terms }}
- {{ $postCount := len $value.Pages -}}
-
- <li><a href="
- /{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key
- }}</a>&nbsp;({{$postCount}})</li>
- {{ end }}
- </ul>
-</article>
-{{ end }} \ No newline at end of file