From 0879852b669b45eab00d570c22e764de0a71b106 Mon Sep 17 00:00:00 2001 From: mms Date: Mon, 23 Sep 2024 23:00:13 +0200 Subject: feat: fix rss --- content-org/blog.org | 1 + content/blog/2024/internet-and-press.md | 1 + layouts/partials/blog/cross-site-post.html | 18 ++---------------- layouts/partials/external_link.html | 17 +++++++++++++++++ themes/sapka-2024/layouts/_default/rss.xml | 11 ++++++++--- 5 files changed, 29 insertions(+), 19 deletions(-) create mode 100644 layouts/partials/external_link.html diff --git a/content-org/blog.org b/content-org/blog.org index 166c834..d0e78fd 100644 --- a/content-org/blog.org +++ b/content-org/blog.org @@ -20,6 +20,7 @@ CLOSED: [2024-09-23 Mon 22:45] :PROPERTIES: :EXPORT_FILE_NAME: internet-and-press :EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :abstract Grumpy mc grumps grumping +:EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :listening Milt Jackson & John Coltrane - Bags and Trane :END: As a kid, I loved reading computer related press. diff --git a/content/blog/2024/internet-and-press.md b/content/blog/2024/internet-and-press.md index 9f38f79..2cb4637 100644 --- a/content/blog/2024/internet-and-press.md +++ b/content/blog/2024/internet-and-press.md @@ -8,6 +8,7 @@ weight = 2001 image_dir = "blog/images" image_max_width = 600 abstract = "Grumpy mc grumps grumping" +listening = "Milt Jackson & John Coltrane - Bags and Trane" +++ As a kid, I loved reading computer related press. diff --git a/layouts/partials/blog/cross-site-post.html b/layouts/partials/blog/cross-site-post.html index b438467..7684410 100644 --- a/layouts/partials/blog/cross-site-post.html +++ b/layouts/partials/blog/cross-site-post.html @@ -1,16 +1,3 @@ -{{ $section := "some other site" }} - -{{ if eq .Section "cool-emacs" }} - {{ $section = "Cool Emacs" }} -{{ else if eq .Section "brain-rot" }} - {{ $section = "Brain Rots" }} -{{ else if eq .Section "unix-history" }} - {{ $section = "Unix History" }} -{{ else if eq .Section "star-trek" }} - {{ $section = "Star Trek" }} -{{ else if eq .Section "bsd" }} - {{ $section = "Guide to BSD" }} -{{ end }} diff --git a/layouts/partials/external_link.html b/layouts/partials/external_link.html new file mode 100644 index 0000000..5b3277f --- /dev/null +++ b/layouts/partials/external_link.html @@ -0,0 +1,17 @@ +{{ $section := "some other site" }} + +{{ if eq .Section "cool-emacs" }} + {{ $section = "Cool Emacs" }} +{{ else if eq .Section "brain-rot" }} + {{ $section = "Brain Rots" }} +{{ else if eq .Section "unix-history" }} + {{ $section = "Unix History" }} +{{ else if eq .Section "star-trek" }} + {{ $section = "Star Trek" }} +{{ else if eq .Section "bsd" }} + {{ $section = "Guide to BSD" }} +{{ end }} + +I published "{{ .Title }}" on {{ $section }} + + diff --git a/themes/sapka-2024/layouts/_default/rss.xml b/themes/sapka-2024/layouts/_default/rss.xml index 563c93c..fa34bd5 100644 --- a/themes/sapka-2024/layouts/_default/rss.xml +++ b/themes/sapka-2024/layouts/_default/rss.xml @@ -67,9 +67,14 @@ {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ crypto.MD5 .Date }} - {{ if in .Page.Params.Categories "blog" }} - {{ safeHTML "

Reply via email

]]>
- {{ end }} + {{ if in .Page.Params.Categories "blog" }} + {{ safeHTML "

Reply via email

]]> + {{ else }} + {{ safeHTML "

Reply via email

]]> + {{ end }} + {{- end }} -- cgit v1.2.3