diff options
Diffstat (limited to 'themes/neonxp/layouts/_default')
| -rw-r--r-- | themes/neonxp/layouts/_default/section.atom.xml | 23 | ||||
| -rw-r--r-- | themes/neonxp/layouts/_default/section.feed.json | 31 | ||||
| -rw-r--r-- | themes/neonxp/layouts/_default/taxonomy.html | 20 | ||||
| -rw-r--r-- | themes/neonxp/layouts/_default/terms.html | 17 |
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> ({{$postCount}})</li> - {{ end }} - </ul> -</article> -{{ end }}
\ No newline at end of file |
