summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-03-17 22:15:45 +0100
committermms <michal@sapka.me>2024-03-17 22:15:45 +0100
commitbaa60aee1ec1226b0c0e29fe7977c6ab6ae8f24a (patch)
treef05a7d84a910759d0b71b1e8c69604202ed08d1f
parentb42de7befc83fc17313ee5402c6568fa7825dce0 (diff)
fix: rss subsections
-rw-r--r--config.toml4
-rw-r--r--content/bsd/_index.md0
-rw-r--r--content/star-trek/_index.md0
-rw-r--r--layouts/_default/rss.xml6
4 files changed, 8 insertions, 2 deletions
diff --git a/config.toml b/config.toml
index 52dd1ab..162a0a8 100644
--- a/config.toml
+++ b/config.toml
@@ -9,6 +9,10 @@ enableGitInfo = true
defaultDescription = "Welcome to my blog!"
repoUrl = "https://michal.sapka.me/git/mms/site"
+ [author]
+ name = "mms"
+ email = "webmaster@michal.sapka.me"
+
[taxonomies]
category = 'category'
diff --git a/content/bsd/_index.md b/content/bsd/_index.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/content/bsd/_index.md
diff --git a/content/star-trek/_index.md b/content/star-trek/_index.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/content/star-trek/_index.md
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 6e6480b..0ae7a76 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -33,8 +33,10 @@
{{- $pctx := . }}
{{- if .IsHome }}{{ $pctx = .Site }}{{ end }}
{{- $pages := slice }}
-{{- if or $.IsHome $.IsSection }}
+{{- if $.IsHome }}
{{- $pages = $pctx.RegularPages}}
+{{- else if $.IsSection }}
+{{- $pages = $pctx.RegularPagesRecursive}}
{{- else }}
{{- $pages = $pctx.Pages }}
{{- end }}
@@ -63,7 +65,7 @@
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
- <guid>{{ .Permalink }}</guid>j
+ <guid>{{ .Permalink }}</guid>
<description>{{ safeHTML "<![CDATA[" }}{{ replace .Content "\n\n" "\n" | safeHTML }}<p style="font-style:italic">Comment via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]></description>
</item>
{{- end }}