From d9b26d988808f0abcfeee85734b836c79fb6d8a7 Mon Sep 17 00:00:00 2001 From: "M. Taylor Saotome-Westlake" Date: Wed, 21 Feb 2018 16:28:04 -0800 Subject: [PATCH] simplify "Simple Footnotes" fragment identifier The article slug is already in the URL; repeating it in the fragment is hideous. --- plugins/simple_footnotes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/simple_footnotes.py b/plugins/simple_footnotes.py index 0ea8383..d6e8810 100644 --- a/plugins/simple_footnotes.py +++ b/plugins/simple_footnotes.py @@ -56,7 +56,7 @@ def parse_for_footnotes(article_or_page_generator): if leavealone: continue count += 1 - fnid = u"sf-%s-%s" % (article.slug, count) + fnid = u"note-%s" % (count) fnbackid = u"%s-back" % (fnid,) endnotes.append((footnote, fnid, fnbackid)) number = dom.createElement(u"sup") -- 2.17.1