Skip to content

Instantly share code, notes, and snippets.

@mivade
Created December 7, 2014 14:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mivade/553bebb1ae30ce914511 to your computer and use it in GitHub Desktop.
Save mivade/553bebb1ae30ce914511 to your computer and use it in GitHub Desktop.
Colored admonitions in Pelican with pelican-bootstrap3
/*
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');
@mikepietruszka
Copy link

mikepietruszka commented May 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment