Created
December 7, 2014 14:29
-
-
Save mivade/553bebb1ae30ce914511 to your computer and use it in GitHub Desktop.
Colored admonitions in Pelican with pelican-bootstrap3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple jQuery calls to replace RST admonitions with Bootstrap | |
alerts. | |
This is intended to work with the pelican-bootstrap3 Pelican theme, | |
but may also work with others. | |
This script is public domain. | |
*/ | |
$('.note').addClass('alert').addClass('alert-info').removeClass('note'); | |
$('.warning').addClass('alert').addClass('alert-warning').removeClass('warning'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you just stick this into
pelican-bootstrap3/static/js/admonitions.js
? I don't think I'm getting the desired effect of colored admonitions in latest pelican-bootstrap3 version.