From 59c8afd9f59bce59e2b9045572f573f3b056187f Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 22 Jul 2024 09:57:04 -0400 Subject: Fix RSS generated URL links for each post --- wruby.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wruby.rb b/wruby.rb index 707b64c..88d364d 100644 --- a/wruby.rb +++ b/wruby.rb @@ -92,7 +92,7 @@ def generate_rss(posts, rss_file, author_name, site_name, site_url) posts.each do |post| maker.items.new_item do |item| - item.link = "#{site_url}/#{post[:link]}" + item.link = "#{site_url}/#{posts_dir}/#{post[:link]}" item.title = post[:title] item.updated = post[:date].to_s item.content.type = 'html' @@ -115,5 +115,3 @@ FileUtils.cp_r(public_dir, output_dir) generate_rss(posts, rss_file, author_name, site_name, site_url) puts "Blog built successfully in '#{output_dir}' folder. Have a great day!" - - -- cgit v1.2.3-54-g00ecf