'Next post' and 'Previous post' links for posts in a sequence

by lukeprog1 min read26th Nov 20117 comments


Site Meta
Personal Blog

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:

  1. Open all the posts from one sequence, in order, in browser tabs.
  2. Go to first post in the sequence.
  3. Click 'Edit'.
  4. Click 'HTML' and uncheck 'Word Wrap.'
  5. Scroll to the bottom of the post (not counting notes and references) and paste in the following:

    <p align="right">Next post: <a href=""></a></p>
    <p align="right">Previous post: <a href=""></a></p>

  6. If post is first in sequence, remove 'Previous post' line.
  7. If post is last in sequence, remove 'Next post' line.
  8. Paste in URL and post title for remaining 'Next post' or 'Previous post' lines of HTML.
  9. Click 'Update', then click 'Submit'.
  10. If this is the last post in the sequence, return 0. Else, move to next post in sequence and go to step #3.


7 comments, sorted by Highlighting new comments since Today at 2:44 AM
New Comment

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

, apparently.

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:

<p align="right"><br />
Next post: <a href=""></a><br />
Previous post: <a href=""></p>

(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).