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 path = item.path %}
|
||||||
{% assign title = item.title %}
|
{% assign title = item.title %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign page = site.pages | where: "path", item | first %}
|
{% assign found_page = site.pages | where: "path", item | first %}
|
||||||
{% assign title = page.title %}
|
{% assign title = found_page.title %}
|
||||||
{% assign path = page.url %}
|
{% assign path = found_page.url %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue