Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Break when we successfully generate nav link. #3291
So in liquid 2.5.0 they added break and continue support: https://github.com/Shopify/liquid/blob/master/History.md#250--2013-03-06
So our build time loop that invokes this code looks something like this:
Without the break we iterate through every doc for every link, this will at least stop the last doc loop once we've built the link.
Non-scientific performance measurement/improvement: