1
0
Fork 0
Pelican plugin for fixing footnotes in summaries https://aweirdimagination.net/2015/02/07/my-first-pelican-plugin/
Go to file
Jessica Lares cdeff7d1bb Adds support for named footnotes
Adds BeautifulSoup's re to imported modules in order to create variable for finding instances of the "fnref-" id followed by a wildcard. It takes the place of the original "footnote" class in footnotes_div.
2018-03-10 17:06:15 -08:00
LICENSE Added license file. 2015-02-05 08:27:44 -08:00
README.md Cleaner monkey patching based on ssummary. 2015-02-06 03:19:37 -08:00
__init__.py Initial commit. 2015-02-05 08:23:38 -08:00
summary_footnotes.py Adds support for named footnotes 2018-03-10 17:06:15 -08:00

README.md

#Summary Footnotes Plugin#

Plugin to fix footnote references in your summary. By default, they are broken links because the footnotes are not included with the summary. This plugin lets you either remove the links or make them point to the full article page.

This plugin was based off the clean_summary and ssummary plugins.

##Settings##

This plugin has one setting, SUMMARY_FOOTNOTES_MODE which takes a string. The two available modes are "remove" which removes all footnote links from summaries and "link" (the default) which changes footnote links in summaries to link to the footnote on the article page.

##Requirements##

Requires Beautiful Soup:

pip install BeautifulSoup4

##Usage with Summary Plugin##

If using the summary plugin, make sure summary appears in your plugins before clean summary. Eg.

PLUGINS = ['summary', 'summary_footnotes', ... ]