Pelican niconico is a plugin to enabled you to embed niconico videos in your pages and articles.(unOfficial)
To enable, ensure that pelican_niconico.py
is put somewhere that is accessible(pelican_niconico folder).
Then use as follows by adding the following to your pelicanconf.py:
PLUGIN_PATH = 'path/to/pelican-plugins'
PLUGINS = [
# ...
'pelican_niconico',
# ...
]
PLUGIN_PATH
can be a path relative to your settings file or an absolute path.
code-block:: md [niconico:niconico videoID]
if you want to resize embed player
[niconico:niconico videoID?w=560&h=315]
result in:
code-block:: html
<div class="niconico">
<script type="text/javascript" src="http://ext.nicovideo.jp/thumb_watch/niconico videoID"></script>
</div>
[niconico:sm22098259]
[niconico:sm22098259?w=560&h=315]