slight adjustments to feed

This commit is contained in:
Wouter Groeneveld 2021-06-01 11:18:57 +02:00
parent 506edb202f
commit 2cf689ad0c
3 changed files with 143 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 29 KiB

141
static/pretty-feed-v3.xsl Normal file

File diff suppressed because one or more lines are too long

View File

@ -13,6 +13,7 @@
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
{{- printf "<?xml-stylesheet href=\"/pretty-feed-v3.xsl\" type=\"text/xsl\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
@ -34,7 +35,7 @@
<link>{{ .Permalink }}</link>
<comments>{{ .Site.Author.mastodonlink }}</comments>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<author>{{ with $.Site.Author.name }} {{.}}{{end}}</author>
<guid>{{ .Permalink }}</guid>
{{ if .Keywords }}
{{ range .Keywords }}