X-Git-Url: http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=blobdiff_plain;f=plugins%2Fsimple_footnotes.py;h=11cf31088dfd5d762c161ccd86c077a7e1323106;hp=0ea83834301dfb803e12c5f8f0e1c0eafa58afb9;hb=1881f3a3d4932e2eebcc1aea119470ef96a36838;hpb=41a497634a8cbe144b07fb3a7c0e0b318d03004f diff --git a/plugins/simple_footnotes.py b/plugins/simple_footnotes.py index 0ea8383..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"sf-%s-%s" % (article.slug, 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")