Last active
December 20, 2015 21:39
-
-
Save opattison/6199158 to your computer and use it in GitHub Desktop.
A pattern for category-limited navigation using Liquid in Jekyll. The `if` statement only generates a nav link if the URL for the next/previous post exists *and* if the category for the next post is of the same type. This pattern assumes that one is using categories to describe types of post (e.g. writing, photos, videos and so on) to build mult…
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i think i found the reason for this to be unconsistent in my scenario. The loop stops if the next/previous post exists but is not in the specified category.... working on it :) i'll get back whenever i figure this out....