You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.7.7. It fixes some bugs and adds new features.
11
+
12
+
What is Nikola?
13
+
===============
14
+
15
+
Nikola is a static site and blog generator, written in Python.
16
+
It can use Mako and Jinja2 templates, and input in many popular markup formats, such as reStructuredText and Markdown — and can even turn Jupyter (IPython) Notebooks into blog posts! It also supports image galleries, and is multilingual. Nikola is flexible, and page builds are extremely fast, courtesy of doit (which is rebuilding only what has been changed).
17
+
18
+
Find out more at the website: https://getnikola.com/
19
+
20
+
Downloads
21
+
=========
22
+
23
+
Install using `pip install Nikola` or download tarballs on [GitHub][] and [PyPI][].
Copy file name to clipboardExpand all lines: stories/manual.txt
+26-4
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
The Nikola Handbook
10
10
===================
11
11
12
-
:Version: v7.7.6
12
+
:Version: 7.7.7
13
13
14
14
.. class:: alert alert-info pull-right
15
15
@@ -813,7 +813,7 @@ To use them from plugins, please see `Extending Nikola <https://getnikola.com/ex
813
813
Using a shortcode
814
814
~~~~~~~~~~~~~~~~~
815
815
816
-
In your content files, a shortcode can be called by using the ``{{% name parameters %}}`` form. Shortcode parameters are space delimited. Parameters with spaces can be quoted (or backslash escaped).
816
+
In your content files, a shortcode can be called by using the {{% raw %}}{{% name parameters %}}{{% /raw %}} form. Shortcode parameters are space delimited. Parameters with spaces can be quoted (or backslash escaped).
817
817
818
818
The first word is always the name of the shortcode. Parameters follow the name. Depending upon how the shortcode is defined, the parameters may be named, positional or both. The format for named parameters models that of HTML with the format name="value".
819
819
@@ -829,6 +829,27 @@ Built-in shortcodes
829
829
post-list
830
830
Will show a list of posts, see the `Post List directive for details <#post-list>`__
831
831
832
+
media
833
+
Display media embedded from a URL, for example, this will embed a youtube video::
834
+
835
+
{{% raw %}}{{% media url="https://www.youtube.com/watch?v=Nck6BZga7TQ" %}}{{% /raw %}}
836
+
837
+
In reStructuredText this shortcode will fail because docutils turns that URL to a link and everything breaks, use the `media directive <#media>`__ instead.
838
+
839
+
chart
840
+
Create charts via PyGal. This is similar to the `chart directive <#chart>`__ except the syntax is adapted to
841
+
shortcodes. This is an example::
842
+
843
+
{{% raw %}}{{% chart Bar title='Browser usage evolution (in %)' %}}
0 commit comments