Skip to content

Commit

Permalink
Added a class to backref links so that they can be hidden if necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacmackin committed Sep 19, 2015
1 parent 6202643 commit b2f7e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pelican_cite.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

__version__ = '0.2.0'

JUMP_BACK = '<a href="#ref-{0}-{1}" title="Jump back to reference {1}">{2}</a>'
JUMP_BACK = '<a class="cite-backref" href="#ref-{0}-{1}" title="Jump back to reference {1}">{2}</a>'
CITE_RE = re.compile("\[&#64;(&#64;)?\s*(\w.*?)\s*\]")

class Style(UnsrtStyle):
Expand Down

1 comment on commit b2f7e2c

@jranke
Copy link

@jranke jranke commented on b2f7e2c Mar 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that the back references look nice, but somehow disturb the layout of the text around the reference when they are visited. Is that the reason why you made it possible to hide them?

Please sign in to comment.