3 ms·
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 alt
by outcoldman 3y 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 3y 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/ https://blog.nawaz.org/) has an RSS feed here (https://blog.nawaz.org/feeds/all.atom.xml 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 3y agoPut this line in html: <link rel="alternate" type="application/atom+xml" title="Atom feed" href="https://blog.nawaz.org/feeds/all.atom.xml https://blog.nawaz.org/feeds/all.atom.xml"> UPD: type="application/atom+xml" for Atom, type="application/rss+xml" for RSS
- RamblingCTO 3y agoDidn't work for me and andinfinity.eu, but I'm in the other lists. Any ideas?
- outcoldman 3y agoAdded a note https://github.com/outcoldman/hackernews-personal-blogs/tree/master#dont-see-your-blog-in-the-list https://github.com/outcoldman/hackernews-personal-blogs/tree... I checked yours, the issue is that you are escaping + in application/rss+xml, when it should be just application/rss+xml I have updated the code and will re-generate. I am not sure if what you are doing is allowed or not.
- distcs 3y agoI don't know Go's flavor of regex but is this correct parsing code: https://github.com/outcoldman/hackernews-personal-blogs/blob/master/main.go#L130-L148 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.
- outcoldman 3y agoI have fixed it for more people, should have used the built-in resolution func https://github.com/outcoldman/hackernews-personal-blogs/blob/master/main.go#L156 https://github.com/outcoldman/hackernews-personal-blogs/blob...
- deleted 3y ago[deleted]
- generalizations 3y agoAh, shouldn't have used a throwaway to post my blog. Oh well.
- outcoldman 3y agoYou can comment on that original post again with normal account, and I will regenerate.
- midzer 3y agoDo sitemaps like `<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">` work, too? -> https://stackoverflow.com/questions/13327527/how-to-make-a-sitemap-link-in-the-page-head-pass-the-w3c-validator https://stackoverflow.com/questions/13327527/how-to-make-a-s...