scripting / opml.org

A repository to back up the opml.org website.
MIT License
15 stars 1 forks source link

Blogrolls are OPML subscription lists #16

Open scripting opened 7 months ago

scripting commented 7 months ago

I just started this page, with info about how to point to blogrolls from HTML and RSS.

https://opml.org/blogroll.opml

There may be other notes on this page as the art progresses.

Thanks to @manton for collaborating on this in March 2024.

manuel commented 5 months ago

How is the blogroll updated? (I'm assuming it's not polling all feeds every minute.)

scripting commented 5 months ago

@manuel -- no it's not polling all the feeds every minute.

When a feed is updated, the blogroll receives a websocket message from FeedLand, with the latest info from the feed.

You can see it in action:

  1. Go to scripting.com in a browser.
  2. Open the JavaScript console.
  3. Wait. Pretty soon you should see an update come through. If it's for a feed that isn't in my blogroll, nothing happens, but if it is, then the list is rearranged so the updated item moves to the top and everything else moves down.
colin-walker commented 5 months ago

@scripting Nice. Added this to my site now, pointing to the auto-generated OPML from my /reader

scripting commented 3 months ago

Update:

http://scripting.com/2024/06/28/170235.html

Dave

troutcolor commented 3 months ago

Hi, I just added a function to add a blogroll to my WordPress site It seems to have worked. I am just using a Feedland.com category.

I just did a bit of searching about how to add a link to the head in WordPress and came up with this. I've no idea if this is a good or best way to do it. I also do not know how to test if it has worked other than to look at the source which looks ok to me?

FWIW I added this to my child theme's functions.php

function hook_nocache() {
    ?>
<link rel="blogroll" type="text/xml" href="https://feedland.com/opml?screenname=johnjohnston&catname=blogroll">
    <?php
}
add_action('wp_head', 'hook_nocache');

Update, I can see this now on https://browse.blogroll.social/ so that answers my question about if it works ;-)

scripting commented 3 months ago

@troutcolor -- glad to see you're trying this out. :smile:

I've asked some of the experts at Automattic to check in here to see if they can help, but in the meantime, the fact that it showed up in browser.blogroll.social means that you have gotten the <link> element in the HTML page working, because that's what my app looks for.

fmfernandes commented 3 months ago

I was also taking a look and the code @troutcolor provided is indeed the correct way of adding this to WordPress!

scripting commented 3 months ago

thanks @fmfernandes --

@troutcolor -- fernando works at Automattic.