davideisinger.com

My personal website
Log | Files | Refs | README

commit 49ca2bd7368df9768a4febd0ebb69b5fe67f8d3b
parent 1ea897ed32680694aeccd10461973485c58077f3
Author: David Eisinger <[email protected]>
Date:   Tue,  4 Apr 2023 19:12:41 -0400

Strip footnote links from index summaries

Diffstat:
Mthemes/v2/layouts/index.html | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

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