Don't overwrite the global `page` object when building the table of contents
This commit is contained in:
parent
10a57f1e61
commit
eb4cbf9ef0
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue