X-Git-Url: http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=blobdiff_plain;f=plugins%2Fsimple_footnotes.py;h=11cf31088dfd5d762c161ccd86c077a7e1323106;hp=d6e8810ba72a9600cf92a9f346ec760bb3dbe781;hb=cc3001c687807b0bc9d135855ac7fe240d075167;hpb=d9b26d988808f0abcfeee85734b836c79fb6d8a7 diff --git a/plugins/simple_footnotes.py b/plugins/simple_footnotes.py index d6e8810..11cf310 100644 --- a/plugins/simple_footnotes.py +++ b/plugins/simple_footnotes.py @@ -56,7 +56,9 @@ def parse_for_footnotes(article_or_page_generator): if leavealone: continue count += 1 - fnid = u"note-%s" % (count) + + short_slug = "-".join(article.slug.split('-')[:5]) + fnid = u"%s-note-%s" % (short_slug, count) fnbackid = u"%s-back" % (fnid,) endnotes.append((footnote, fnid, fnbackid)) number = dom.createElement(u"sup")