Merge pull request #2095 from benbalter/dont-assign-page

Don't overwrite the global page object
This commit is contained in:
Phillip Wittrock
2017-01-03 10:58:26 -08:00
committed by GitHub
+3 -3
View File
@@ -12,9 +12,9 @@
{% assign path = item.path %}
{% assign title = item.title %}
{% else %}
{% assign page = site.pages | where: "path", item | first %}
{% assign title = page.title %}
{% assign path = page.url %}
{% assign found_page = site.pages | where: "path", item | first %}
{% assign title = found_page.title %}
{% assign path = found_page.url %}
{% endif %}
{% endcapture %}