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

post by lukeprog · 2011-11-26T06:09:41.382Z · LW · GW · Legacy · 7 comments

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>&nbsp;</p>
    <p align="right">Next post: <a href=""></a></p>
    <p align="right">Previous post: <a href=""></a></p>
    <p>&nbsp;</p>
    <p>&nbsp;</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

Comments sorted by top scores.

comment by Richard_Kennaway · 2011-11-26T09:27:26.405Z · LW(p) · GW(p)

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?

comment by Solvent · 2011-11-27T10:40:44.781Z · LW(p) · GW(p)

Incidentally, why aren't you an editor, Luke?

comment by kilobug · 2011-11-27T11:07:24.356Z · LW(p) · GW(p)

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 ?

comment by DanielLC · 2011-11-26T23:18:11.097Z · LW(p) · GW(p)

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.

comment by Grognor · 2011-11-26T08:28:59.993Z · LW(p) · GW(p)

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?

comment by lukeprog · 2011-11-26T06:12:37.670Z · LW(p) · GW(p)

The actual code I meant to paste is here. LW won't let me show the hard-space code even when I use

, apparently.

Replies from: Vladimir_Nesov
comment by Vladimir_Nesov · 2011-11-26T14:42:39.862Z · LW(p) · GW(p)

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