Day 13: Using real links
The scourge of web design is the "
Although it's easy to describe and simple to fix, I can't stress enough how important this tip is. Some problems, like not having a "skip link" past your navigation bar, reduce usability to varying degrees, but at least your page can be read eventually. On the other hand, this problem actually makes entire chunks of important content completely inaccessible. If your comments are hidden behind a "
- Google benefits. Google wants to follow links to find and index more content, but it can't follow "
How to do it
The default templates in Movable Type and Radio now get this right, so you may not need to do anything. View source on your home page and search for "
However, if your Movable Type template contains a link like this:
Then change it to this:
<a href="<$MTCGIPath$>mt-comments.cgi?entry_id=<$MTEntryID$>" onclick="OpenComments(<$MTEntryID$>); return false">Comments (<$MTEntryCommentCount$>)</a>
onclick attribute takes precedence over the
href attribute. So the new version still calls the
onclick attribute entirely and follow the link specified in the
href, which will display the comments in the same window.
If you're using