Custom plugins for Pelican, used in the Varia website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mb @ ts abb64b784e added the ref number to the footnote 6 years ago
..
README.md updated readme 6 years ago
__init__.py custom version of simple_footnotes 6 years ago
simple_footnotes.py added the ref number to the footnote 6 years ago
test_simple_footnotes.py custom version of simple_footnotes 6 years ago

README.md

Complex Footnotes

A fork of the Simple-Footnotes Pelican plugin that gives you more finegrained styling options.

When writing a post or page, add a footnote like this:

Here's my written text[ref]and here is a footnote[/ref].

This will appear as, roughly:

Here's my written text1

  1. and here is a footnote ↩

Inspired by Andrew Nacin's Simple Footnotes WordPress plugin.

Requirements

Needs html5lib, so you'll want to pip install html5lib before running.

Should work with any content format (ReST, Markdown, whatever), because it looks for the [ref] and [/ref] once the conversion to HTML has happened.

Stuart Langridge, http://www.kryogenix.org/, February 2014.