‘Next post’ and ‘Previous post’ links for posts in a sequence
Less Wrong would be stickier if there were links at the bottom of each post in The Sequences to the next and previous posts in that sequence.
I just added those links for each post in my own sequences: The Science of Winning at Life, Rationality and Philosophy, and No-Nonsense Metaethics.
I can’t do that for sequences written by somebody else. Perhaps one or more of the LW editors would be willing to start hacking away on that project?
Here’s the algorithm I executed:
Open all the posts from one sequence, in order, in browser tabs.
Go to first post in the sequence.
Click ‘Edit’.
Click ‘HTML’ and uncheck ‘Word Wrap.’
Scroll to the bottom of the post (not counting notes and references) and paste in the following:
<p> </p>
<p align=”right”>Next post: <a href=”“></a></p>
<p align=”right”>Previous post: <a href=””></a></p>
<p> </p>
<p> </p>If post is first in sequence, remove ‘Previous post’ line.
If post is last in sequence, remove ‘Next post’ line.
Paste in URL and post title for remaining ‘Next post’ or ‘Previous post’ lines of HTML.
Click ‘Update’, then click ‘Submit’.
If this is the last post in the sequence, return 0. Else, move to next post in sequence and go to step #3.
Maybe there could (also) be automatically generated “referenced by” links, whenever a later post refers to an earlier one. Or would that produce too many links?
Incidentally, why aren’t you an editor, Luke?
Great idea, but couldn’t we have it automatically generated ? Like a field “previous” in the edit form, and when filled, it automatically adds the “previous post” link on the article, and the “next post” on the referenced one ? So we are sure the next/previous links are always synced ?
While we’re at it, how about “random post”, or even “random unread post”? In fact, I suggest adding a list of random posts after the recent posts.
I pretty well think there should be responses by other people place in articles as well. Like Yvain’s partial-response to this post. Maybe that’s not the best example, but you get the idea, yeah?
The actual code I meant to paste is here. LW won’t let me show the hard-space code even when I use
I couldn’t get articles to show ’s either, but the code as posted is equivalent to the code you meant to post, so there is no point (as you can see, you could include them in a comment directly).
The empty newlines make sense before footnotes in your post (maybe just one newline, not two), but would be bad at the end of a post, and I’d make it more compact, like this:
(I’m not sure about the right-alignment thing, maybe left-aligned it would look better.)
There is also “article navigation” LW feature that was intended to do what you describe, and even included parsing of wiki articles that list posts in a sequence, but was never polished enough to become particularly usable. And if sequences are consistently tagged by sequence-identifying tags, it can actually be used, though it’s not prominent enough to be noticed (click “Article Navigation” at the end of a post to access this feature).