diff options
author | Bradley Taunt <bt@btxx.org> | 2024-07-22 09:58:33 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-07-22 09:58:33 -0400 |
commit | c0c0d9ffc6890d95517dcae0c7bb84e594ec7cf8 (patch) | |
tree | 41576d45e7707ad921350a30e980f6770f27af40 | |
parent | 59c8afd9f59bce59e2b9045572f573f3b056187f (diff) |
Update missing arguments for generating RSS
-rw-r--r-- | wruby.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -83,7 +83,7 @@ def generate_index(posts, header_content, footer_content, root_index_file, outpu end # Generate the RSS feed -def generate_rss(posts, rss_file, author_name, site_name, site_url) +def generate_rss(posts, rss_file, author_name, site_name, site_url, posts_dir) rss = RSS::Maker.make("atom") do |maker| maker.channel.author = author_name maker.channel.updated = Time.now.to_s @@ -112,6 +112,6 @@ pages = process_markdown_files(pages_dir, pages_output_dir, header_content, foot generate_index(posts, header_content, footer_content, root_index_file, output_dir, posts_dir) FileUtils.cp_r(public_dir, output_dir) -generate_rss(posts, rss_file, author_name, site_name, site_url) +generate_rss(posts, rss_file, author_name, site_name, site_url, posts_dir) puts "Blog built successfully in '#{output_dir}' folder. Have a great day!" |