points by outcoldman 2 years ago

Yeah, the best way is to go back to the original post and submit comment there on top level. Make sure HN recognize that as a correct href and your blog has alternative link to rss/atom. And for now only users with 100+ karma are included.

I left the console.log there as well to show which blogs aren't recognized.

I am also open for PR. It was just a few hours project to get it going, but if people will find it useful, would be nice to get some tags from the blogs, so it would be possible to extract the list only for specific technology/topics.

BeetleB 2 years ago

> Make sure HN recognize that as a correct href and your blog has alternative link to rss/atom.

Any details on how to do this? My blog (https://blog.nawaz.org/) has an RSS feed here (https://blog.nawaz.org/feeds/all.atom.xml) but I don't know how to set it up the way you'd need it.

  • zczc 2 years ago

    Put this line in html:

    <link rel="alternate" type="application/atom+xml" title="Atom feed" href="https://blog.nawaz.org/feeds/all.atom.xml">

    UPD: type="application/atom+xml" for Atom, type="application/rss+xml" for RSS

distcs 2 years ago

I don't know Go's flavor of regex but is this correct parsing code: https://github.com/outcoldman/hackernews-personal-blogs/blob...

Are you taking care that if the <link> tag spans over multiple lines (linebreaks in between), you're still parsing it right?

You do seem to be resolving relative paths with:

  feedUrl := matches[1]
  if feedUrl[0] == '/' {
      feedUrl = url + feedUrl
  } else if !strings.HasPrefix(feedUrl, "http") {
      feedUrl = url + "/" + feedUrl
  }

So I think this is good. Just trying to see what could be breaking for the other users who are complaining their feed isn't listed.

RamblingCTO 2 years ago

Didn't work for me and andinfinity.eu, but I'm in the other lists. Any ideas?

generalizations 2 years ago

Ah, shouldn't have used a throwaway to post my blog. Oh well.

  • outcoldman 2 years ago

    You can comment on that original post again with normal account, and I will regenerate.