From afad33e23be8f0a73bd2d1e12798cc50e21e5895 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 3 Nov 2023 17:25:38 +0100 Subject: Updated webring script --- bin/webring.rb | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'bin') diff --git a/bin/webring.rb b/bin/webring.rb index 29b0128..066d66b 100644 --- a/bin/webring.rb +++ b/bin/webring.rb @@ -6,15 +6,15 @@ require "simple-rss" summary_max_length = 320 feeds = [ - "https://landley.net/rss.xml", - "https://drewdevault.com/feed.xml", - "https://offbeatpursuit.com/blog/index.rss", - "https://mirzapandzo.com/rss.xml", - "https://journal.valeriansaliou.name/rss/", - "https://neil.computer/rss/", - "https://michael.stapelberg.ch/feed.xml", - "https://utcc.utoronto.ca/~cks/space/blog/?atom", - "https://szymonkaliski.com/feed.xml" + "https://landley.net/rss.xml", + "https://drewdevault.com/feed.xml", + "https://offbeatpursuit.com/blog/index.rss", + "https://mirzapandzo.com/rss.xml", + "https://journal.valeriansaliou.name/rss/", + "https://neil.computer/rss/", + "https://michael.stapelberg.ch/feed.xml", + "https://utcc.utoronto.ca/~cks/space/blog/?atom", + "https://szymonkaliski.com/feed.xml" ] out_html = "" @@ -41,9 +41,9 @@ feeds.each do |feed_url| summary.force_encoding("UTF-8") summary = decoder.decode(summary) - .gsub(%r{]+?>}, '') - .gsub(/\s{2,}/, ' ') - .gsub("\n", ' ') + .gsub(%r{]+?>}, '') + .gsub(/\s{2,}/, ' ') + .gsub("\n", ' ') if summary.length > summary_max_length summary = "#{summary[0...summary_max_length]}..." @@ -73,7 +73,6 @@ feeds.each do |feed_url| end end - template = ERB.new <<-EOF

Posts from blogs I follow around the net

-- cgit v1.2.3