Blogroll

The good internet still exists, and it often exists in blog form. I currently subscribe to a bunch of RSS feeds in NetNewsWire, where I organize them by folder.

To generate this page, I exported the OPML and then ran it through a quick Perl script to convert it to some nested lists that the WordPress code editor would accept and convert to blocks. That’s just how I… roll. 😎

cat blogroll.opml | perl -ne 'if (/\<outline/) { if (/xmlUrl/) { /title="([^"]+)".*xmlUrl="([^"]+)"/; print "<!-- wp:list-item -->\n<li><a href=\"$2\">$1</a></li>\n<!-- /wp:list-item -->\n"; } else { /title="([^"]+)"/; print "<!-- wp:list-item -->\n<li>$1<!-- wp:list -->\n<ul>\n"; } } elsif (/\<\/outline\>/) { print "</ul>\n<!-- /wp:list --></li>\n<!-- /wp:list-item -->\n"; }'