Skip to content

Commit

Permalink
fixing rss
Browse files Browse the repository at this point in the history
  • Loading branch information
drio committed Feb 13, 2025
1 parent 317f4f6 commit 63b057a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
baseURL = "https://drio.github.io/unixmagic/"
languageCode = "en-us"
title = "Unix Poster Annotations"
enableGitInfo = true

[markup]
[markup.goldmark]
Expand Down
2 changes: 2 additions & 0 deletions content/markers/01-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ position:
left: "40%"
top: "65%"
description: "A gateway to controlling the system"
date: 2025-02-13T12:00:00Z
lastmod: 2025-02-13T12:00:00Z
---

The prominent position of the shell in the UNIX Magic poster reflects its
Expand Down
17 changes: 17 additions & 0 deletions layouts/_default/rss.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- with .OutputFormats.Get "RSS" }}
<rss version="2.0">
<channel>
<title>{{ site.Title }}</title>
<link>{{ site.BaseURL }}</link>
<description>{{ site.Params.description | default site.Title }}</description>
{{ range where site.RegularPages "Section" "markers" }}
<item>
<title>{{ .Title }}</title>
<link>{{ site.BaseURL }}#annotation-{{ .File.BaseFileName }}</link>
<description>{{ .Params.description | html }}</description>
</item>
{{ end }}
</channel>
</rss>
{{- end }}

0 comments on commit 63b057a

Please sign in to comment.