Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Pelican plugin to leverage the use of materialboxed images from materialize css framework

License

Notifications You must be signed in to change notification settings

greizgh/pelican-materialbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Materialbox

This pelican plugin adds necessary tags to use materialboxed images with materialize css framework.

See the demo from materialize doc

##Requirements

This plugin needs beautifulsoup. You can install it with pip:

pip install beautifulsoup4

Of course, you need to use the materialize framework and make sure the materialboxed plugin is loaded:

$(document).ready(function(){
  $('.materialboxed').materialbox();
});

##How to use

Simply add materialbox to your pelican plugins.

An image included like this:

.. figure:: https://127.0.0.1/my_awesome.gif
    :alt: cats

    This is image caption

Will result in this:

<img alt="cats" class="materialboxed" data-caption="This is image caption" src="https://127.0.0.1/my_awesome.gif">

About

Pelican plugin to leverage the use of materialboxed images from materialize css framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages