Don't overwrite the global `page` object when building the table of contents

This commit is contained in:
Ben Balter 2016-12-30 12:49:42 -05:00
parent 10a57f1e61
commit eb4cbf9ef0
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 3 additions and 3 deletions

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 %}