Styling and RSS updates

This commit is contained in:
2023-06-24 20:17:14 +10:00
parent a8f0b30eb1
commit 361a5dc021
5 changed files with 16 additions and 6 deletions

View File

@@ -1,18 +1,21 @@
xml.instruct!(:xml, version: "2.0", encoding: "utf-8")
xml.instruct! "xml-stylesheet", {:href=>"/assets/style.xslt", :type=>"text/xsl"}
xml.channel do |channel|
channel.title "Daniel Nitsikopoulos"
channel.description "The RSS feed for https://dnitza.com"
channel.description "The personal blog of Daniel Nitsikopoulos, software engineer from Canberra, ACT"
channel.link "https://dnitza.com"
channel.name "dnitza.com"
channel.lastBuildDate Time.now.rfc2822
channel.pubDate Time.now.rfc2822
channel.ttl 1800
posts.each do |post|
channel.item do |item|
item.title post.display_title
item.title post.raw_content
item.description do |desc|
desc.cdata! post.feed_content
end
item.link(post.permalink)
item.guid(post.slug, isPermaLink: true)
item.pubDate post.machine_published_at
end

View File

@@ -1,3 +1,3 @@
div class="rounded max-w-xs"
a href="#{post.permalink}"
img class="rounded object-cover hover:opacity-80 h-48 w-48" src="#{post.photos[0]["value"]}" alt="#{post.photos[0]["alt"]}"
img class="rounded object-cover transition-transform transform-gpu ease-out hover:scale-105 h-48 w-48" src="#{post.photos[0]["value"]}" alt="#{post.photos[0]["alt"]}"