Skip to content

Instantly share code, notes, and snippets.

@owengriffin
Created March 27, 2011 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save owengriffin/889341 to your computer and use it in GitHub Desktop.
Save owengriffin/889341 to your computer and use it in GitHub Desktop.
Nanoc helper to list articles related to the current item
@jbonney
Copy link

jbonney commented Aug 17, 2013

Thank you for this. Really useful. As a side note, if one is only interested in the articles that are different from the current one, instead of iterating on all items (@items.each do |item|) it is enough to iterate on (@items - [item]).each do |item|.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment