Fix RSS feed

This commit is contained in:
2024-05-05 20:16:26 +10:00
parent 4c5246374b
commit 0b79872cbe
6 changed files with 72 additions and 56 deletions

View File

@@ -81,7 +81,11 @@ module Admin
def display_title def display_title
title = name title = name
"#{prefix_emoji} #{title}" if prefix_emoji
return "#{prefix_emoji} #{title}"
else
return title
end
end end
def display_published_at def display_published_at

View File

@@ -85,7 +85,11 @@ module Main
def display_title def display_title
title = name title = name
"#{prefix_emoji} #{title}" if prefix_emoji
return "#{prefix_emoji} #{title}"
else
return title
end
end end
def display_published_at def display_published_at

View File

@@ -1,6 +1,7 @@
xml.instruct! "xml-stylesheet", {href: "/assets/full_style.xslt", type: "text/xsl"} xml.instruct! "xml-stylesheet", {href: "/assets/full_style.xslt", type: "text/xsl"}
xml.channel do |channel| xml.rss do |rss|
rss.channel do |channel|
channel.title "Daniel Nitsikopoulos" channel.title "Daniel Nitsikopoulos"
channel.description "The personal blog of Daniel Nitsikopoulos, software engineer from Canberra, ACT" channel.description "The personal blog of Daniel Nitsikopoulos, software engineer from Canberra, ACT"
channel.link "https://dnitza.com" channel.link "https://dnitza.com"
@@ -33,3 +34,4 @@ xml.channel do |channel|
end end
end end
end end
end

View File

@@ -1,6 +1,7 @@
xml.instruct! "xml-stylesheet", {href: "/assets/style.xslt", type: "text/xsl"} xml.instruct! "xml-stylesheet", {href: "/assets/style.xslt", type: "text/xsl"}
xml.channel do |channel| xml.rss do |rss|
rss.channel do |channel|
channel.title "Daniel Nitsikopoulos" channel.title "Daniel Nitsikopoulos"
channel.description "The personal blog of Daniel Nitsikopoulos, software engineer from Canberra, ACT" channel.description "The personal blog of Daniel Nitsikopoulos, software engineer from Canberra, ACT"
channel.link "https://dnitza.com" channel.link "https://dnitza.com"
@@ -33,3 +34,4 @@ xml.channel do |channel|
end end
end end
end end
end

View File

@@ -50,7 +50,11 @@ module Micropub
def display_title def display_title
title = name title = name
"#{prefix_emoji} #{title}" if prefix_emoji
return "#{prefix_emoji} #{title}"
else
return title
end
end end
def display_published_at def display_published_at