prettified rss xml using pretty-feed xsl

This commit is contained in:
Wouter Groeneveld 2021-05-05 09:12:24 +02:00
parent 1794ae4bf0
commit 231fe3c9f2
3 changed files with 146 additions and 2 deletions

View File

@ -6,7 +6,9 @@ aliases:
- /feed
---
If you like receiving updates on all things Brain Baking, you can simply subscribe to one of the _RSS feeds_ below. Freshly baked thoughts and ideas, served in your own favorite news reader, how about that? I like [NetNewsWire](https://netnewswire.com/), which comes with a catchy slogan:
If you like receiving updates on all things Brain Baking, you can simply subscribe to one of the _RSS feeds_[^rss]. Freshly baked thoughts and ideas, served in your own favorite news reader, how about that? I like [NetNewsWire](https://netnewswire.com/), which comes with a catchy slogan:
[^rss]: Read on [aboutfeeds.com](https://aboutfeeds.com/) how these RSS web feeds work in detail.
> More news, less junk. Faster.

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

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,8 @@
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
{{- printf "<?xml-stylesheet href=\"/pretty-feed-v3.xsl\" type=\"text/xsl\"?>" | safeHTML }}
<rss version='2.0' xmlns:content='http://purl.org/rss/1.0/modules/content/' 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>
<link>{{ .Permalink }}</link>