rss endpoint /all/index.xml for processing, remove comments from default feeds
This commit is contained in:
parent
05b3dfd948
commit
0b2357668e
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: All things Brain Baking
|
||||
---
|
||||
|
||||
## All??
|
||||
|
||||
Congrats, you've unlocked a super-secret endpoint [/all/index.xml](/all/index.xml) used by my Jamstack server to process posts on this site! It's of no use to you, trust me.
|
||||
|
||||
[Subscribe to Brain Baking](/subscribe) the _normal_ way, please.
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
title: 'Screen aspect ratios and DOS Games'
|
||||
subtitle: 'Which monitor to use for VGA mode 13h?'
|
||||
concept: true
|
||||
---
|
||||
|
||||
Links:
|
||||
|
||||
- [Displaced Gamers YouTube video](https://www.youtube.com/watch?v=YvckyWxHAIw)
|
||||
- [LCD Monitor compatibility DB](https://www.vogons.org/viewtopic.php?f=46&t=44877&start=20) ([more](https://www.vogons.org/viewtopic.php?f=46&t=39136&hilit=widescreen%2Bresolution&page=8&per_page=20))
|
||||
- [Open Source Scan Converter](https://videogameperfection.com/products/open-source-scan-converter/) (OSSC)
|
||||
- [EDID VGA/DVI Emulators](https://www.startech.com/fr-fr/audio-video-products/vsedidhd)
|
|
@ -29,7 +29,7 @@
|
|||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
{{ range $pages }}
|
||||
{{ if and (in $allowedRssSections .Section) (not (isset .Params "type")) }}
|
||||
{{ if and (in $allowedRssSections .Section) (not (isset .Params "type")) (or (not (isset .Params "context")) (eq .Params.context "")) }}
|
||||
<item>
|
||||
<title>{{ if eq .Section "post" }} 📰 {{ else if eq .Section "notes" }} 💭 {{ end }}{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
{{- $baseurl := .Site.BaseURL -}}
|
||||
{{- $pages := .Site.RegularPages -}}
|
||||
{{- 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: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>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}
|
||||
<managingEditor>{{ with $.Site.Author.name }}{{.}}{{end}}</managingEditor>
|
||||
<webMaster>{{ with $.Site.Author.name }}{{.}}{{end}}</webMaster>{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
{{ range $pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<comments>{{ .Site.Author.mastodonlink }}</comments>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
<author>{{ with $.Site.Author.name }}{{.}}{{end}}</author>
|
||||
<guid isPermaLink="true">{{ .Permalink }}</guid>
|
||||
{{ if .Keywords }}
|
||||
{{ range .Keywords }}
|
||||
<category>{{ . }}</category>
|
||||
{{ end }}
|
||||
{{ else if .Params.tags }}
|
||||
{{ range .Params.tags }}
|
||||
<category domain="{{ $baseurl }}tags/{{ . }}">{{ . }}</category>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $content := .Content | safeHTML }}
|
||||
<description>
|
||||
{{ `<![CDATA[ ` | safeHTML }}
|
||||
{{ $content }}
|
||||
]]>
|
||||
</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
|
@ -29,7 +29,7 @@
|
|||
</svg>
|
||||
<a class="p-category u-url" href="/notes">notes</a>
|
||||
</span>
|
||||
{{ if isset .Params "context" }}
|
||||
{{ if (and (isset .Params "context") (not (eq .Params.context ""))) }}
|
||||
|
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<use xlink:href='#discuss'></use>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ if isset .Params "context" }}
|
||||
{{ if (and (isset .Params "context") (not (eq .Params.context ""))) }}
|
||||
|
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<use xlink:href='#discuss'></use>
|
||||
|
|
Loading…
Reference in New Issue