aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-22 09:57:04 -0400
committerBradley Taunt <bt@btxx.org>2024-07-22 09:57:04 -0400
commit59c8afd9f59bce59e2b9045572f573f3b056187f (patch)
treeb378687a08322836d23cafb3360a9f542ff0d200
parentcd4572bb814834bd2613f4a351b35460af93d785 (diff)
Fix RSS generated URL links for each post
-rw-r--r--wruby.rb4
1 files changed, 1 insertions, 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!"
-
-