diff options
author | Bradley Taunt <bt@btxx.org> | 2024-07-22 09:57:04 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-07-22 09:57:04 -0400 |
commit | 59c8afd9f59bce59e2b9045572f573f3b056187f (patch) | |
tree | b378687a08322836d23cafb3360a9f542ff0d200 | |
parent | cd4572bb814834bd2613f4a351b35460af93d785 (diff) |
Fix RSS generated URL links for each post
-rw-r--r-- | wruby.rb | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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!" - - |