# Drop footnote-references from summary if bottom\_footnotes = true

**URL:** <https://zola.discourse.group/t/drop-footnote-references-from-summary-if-bottom-footnotes-true/2841>\
**Category:** Uncategorized\
**Created:** [August 25, 2025, 8:37pm UTC](https://zola.discourse.group/t/drop-footnote-references-from-summary-if-bottom-footnotes-true/2841 "2025-08-25T20:37:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccjmne](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/ccjmne/32/1499_2.png) [@ccjmne](https://zola.discourse.group/u/ccjmne)\
**Post date:** [August 25, 2025, 8:37pm UTC](https://zola.discourse.group/t/drop-footnote-references-from-summary-if-bottom-footnotes-true/2841/1 "2025-08-25T20:37:18Z")

</div>

When only the `page.summary` is shown in a `section`, its `footnote-reference`s are shown but the links are broken if the site is configured with `bottom_footnotes = true`.

I believe it would make sense to strip the footnote references altogether from the `summary` in such cases. Maybe the `markdown` filter could take an additional optional parameter to avoid rendering footnotes altogether?

---

<div class="post-metadata">

**Author:** ![ccjmne](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/ccjmne/32/1499_2.png) [@ccjmne](https://zola.discourse.group/u/ccjmne)\
**Post date:** [August 25, 2025, 8:55pm UTC](https://zola.discourse.group/t/drop-footnote-references-from-summary-if-bottom-footnotes-true/2841/2 "2025-08-25T20:55:39Z")

</div>

Actually it looks like some code is supposed to be doing just that:

> <https://github.com/getzola/zola/blob/3a24aae684e2c42452ef4f84c9f9c9dd3ca8c769/components/markdown/src/markdown.rs#L819-L830>

Yet I still see the `<sup class=”footnote-reference”>` in my `summary`.

---

<div class="post-metadata">

**Author:** ![ccjmne](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/ccjmne/32/1499_2.png) [@ccjmne](https://zola.discourse.group/u/ccjmne)\
**Post date:** [August 26, 2025, 10:41am UTC](https://zola.discourse.group/t/drop-footnote-references-from-summary-if-bottom-footnotes-true/2841/3 "2025-08-26T10:41:10Z")

</div>

Found the issue, submitted a PR:

> <https://github.com/getzola/zola/pull/2962>
>
> This commit updates and fixes the regular expression to find and delete footnote… references in the pages' summaries.
> 
> fecc3cf introduces the desired behaviour.
> 
> 6a2b890 broke the suppression of footnote-reference in the summary by adding an id parameter to the \<sup\> elements for back-reference.
> 
> Fixes #2961.
> 
> Ref: https://zola.discourse.group/t/drop-footnote-references-from-summary-if-bottom-footnotes-true/2841/2

TL;DR: the regular expression that was locating `footnote-references` for deletion in `summary`wasn’t up to date with the introduction of an `id` attribute, for back-references.
