Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sorry this is (well, somewhat) totally off-topic, but:

Has anyone else noticed that the HN news items now show the sub-domain in select cases? Or has it always done this for 'popular' blogging platforms? Currently I can see this for Blogspot, Wordpress, Blogs.com and Posterous.

And, peripherally related, for this item as well. Which confuses me a little...



It's done this for wordpress et al since the first public release of the source code: http://github.com/nex3/arc/blob/81576aed622d560fdb3c96a26bb5...

Around last July's release it started showing subdomains anytime they aren't 'www'. Compare http://github.com/nex3/arc/blob/arc3/news.arc#L1550 with http://github.com/nex3/arc/blob/arc3.1/news.arc#L1556


Thanks for the info, mate.

I believe you're slightly mistaken with your second line though - in this case it's showing the subdomain because the TLD is .in, and the 'www' bit is to just strip that particular bit from submitted links that might just be 'www.[blogspot|posterous|wordpress|blogs|etc].[in|jp|uk|za|etc]'.

[Further aside: I don't do much code any more, but it was fun to tickle that part of my brain! Thanks again!]


Ah, you're right. So crazy domain names get a subdomain to show up on HN. Very cool.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: