From: M. Taylor Saotome-Westlake Date: Thu, 22 Feb 2018 00:28:04 +0000 (-0800) Subject: simplify "Simple Footnotes" fragment identifier X-Git-Url: http://534655.efjtl6rk.asia/source?a=commitdiff_plain;h=d9b26d988808f0abcfeee85734b836c79fb6d8a7;p=Ultimately_Untrue_Thought.git simplify "Simple Footnotes" fragment identifier The article slug is already in the URL; repeating it in the fragment is hideous. --- 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")