Strip footnote links from index summaries

This commit is contained in:
David Eisinger
2023-04-04 19:12:41 -04:00
parent 1ea897ed32
commit 49ca2bd736

View File

@@ -16,7 +16,8 @@
{{ .Date | time.Format "(2006-01-02)" }}
</p>
{{ .Summary | plainify | safeHTML }}
{{ $sup := "<sup.*?>.*?</sup>" }}
{{ replaceRE $sup "" .Summary | safeHTML }}
</li>
{{ end }}
</ul>