Skip to content

Commit 3a26426

Browse files
committedMar 10, 2016
v7.7.7
1 parent cb1869d commit 3a26426

File tree

9 files changed

+120
-12
lines changed

9 files changed

+120
-12
lines changed
 

‎listings/conf.py

+11
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,12 @@
463463
# output / TRANSLATION[lang] / INDEX_PATH / index-*.html
464464
# INDEX_PATH = ""
465465

466+
# Optional HTML that displayed on “main” blog index.html files.
467+
# May be used for a greeting. (translatable)
468+
FRONT_INDEX_HEADER = {
469+
DEFAULT_LANG: ''
470+
}
471+
466472
# Create per-month archives instead of per-year
467473
# CREATE_MONTHLY_ARCHIVE = False
468474
# Create one large archive instead of per-year
@@ -634,6 +640,11 @@
634640
#
635641
# If set to False, it will sort by filename instead. Defaults to True
636642
# GALLERY_SORT_BY_DATE = True
643+
644+
# If set to True, EXIF data will be copied when an image is thumbnailed or
645+
# resized.
646+
# PRESERVE_EXIF_DATA = False
647+
637648
#
638649
# Folders containing images to be used in normal posts or pages. Images will be
639650
# scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE options, but

‎posts/nikola-v777-is-out.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.. title: Nikola v7.7.7 is out!
2+
.. slug: nikola-v777-is-out
3+
.. date: 2016-03-10 17:16:24 UTC
4+
.. tags: nikola, planet, python, programming, release
5+
.. category:
6+
.. link:
7+
.. description:
8+
.. type: text
9+
10+
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][].
24+
25+
[GitHub]: https://github.com/getnikola/nikola/releases/tag/v7.7.7
26+
[PyPI]: https://pypi.python.org/pypi/Nikola/7.7.7
27+
28+
Changes
29+
=======
30+
31+
Features
32+
--------
33+
34+
* New ``--one-file`` option to wordpress importer (Issue #2262)
35+
* New Pygal-based chart shortcode (Issue #2170)
36+
* Add ``post_type`` to post-list directive (Issue #2272)
37+
* Use ``sys.executable`` for launching pip in ``plugin`` (Issue #2275)
38+
39+
Bugfixes
40+
--------
41+
42+
* Fix Indonesian translation (Issue #2291)
43+
* Fix a JSON conversion bug in the WordPress importer (Issue #2264)
44+
* Don’t create download directories when not downloading WordPress
45+
attachments (Issue #2260)
46+
* Don’t display "Good link" messages in ``nikola check -l`` by default,
47+
can be re-enabled with ``-v`` option (Issue #2268)
48+
* Fix a format string in ``nikola check`` (Issue #2267)
49+
* Don't crash wordpress importer when posts are "empty" (Issue #2263)
50+
* Don't put untranslated and nonexistant posts in sitemap (Issue #2289)
51+

‎stories/CHANGES.txt

+24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
New in v7.7.7
2+
=============
3+
4+
Features
5+
--------
6+
7+
* New ``--one-file`` option to wordpress importer (Issue #2262)
8+
* New Pygal-based chart shortcode (Issue #2170)
9+
* Add ``post_type`` to post-list directive (Issue #2272)
10+
* Use ``sys.executable`` for launching pip in ``plugin`` (Issue #2275)
11+
12+
Bugfixes
13+
--------
14+
15+
* Fix Indonesian translation (Issue #2291)
16+
* Fix a JSON conversion bug in the WordPress importer (Issue #2264)
17+
* Don’t create download directories when not downloading WordPress
18+
attachments (Issue #2260)
19+
* Don’t display “Good link” messages in ``nikola check -l`` by default,
20+
can be re-enabled with ``-v`` option (Issue #2268)
21+
* Fix a format string in ``nikola check`` (Issue #2267)
22+
* Don't crash wordpress importer when posts are "empty" (Issue #2263)
23+
* Don't put untranslated and nonexistant posts in sitemap (Issue #2289)
24+
125
New in v7.7.6
226
=============
327

‎stories/conf.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. title: Nikola v7.7.6 configuration file
1+
.. title: Nikola v7.7.7 configuration file
22
.. slug: conf
33
.. date: 2014-11-08 18:51:30 UTC
44
.. description: The Nikola configuration file.

‎stories/extending.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Extending Nikola
1010
================
1111

12-
:Version: v7.7.6
12+
:Version: 7.7.7
1313
:Author: Roberto Alsina <ralsina@netmanagers.com.ar>
1414

1515
.. class:: alert alert-info pull-right
@@ -495,7 +495,7 @@ Here's the relevant code from the tag plugin.
495495
# path elements.
496496
def tag_rss_path(self, name, lang):
497497
return [_f for _f in [self.site.config['TRANSLATIONS'][lang],
498-
self.site.config['TAG_PATH'], self.slugify_name(name) + ".xml"] if
498+
self.site.config['TAG_PATH'], self.slugify_name(name, lang) + ".xml"] if
499499
_f]
500500

501501
Template Hooks

‎stories/manual.txt

+26-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
The Nikola Handbook
1010
===================
1111

12-
:Version: v7.7.6
12+
:Version: 7.7.7
1313

1414
.. class:: alert alert-info pull-right
1515

@@ -813,7 +813,7 @@ To use them from plugins, please see `Extending Nikola <https://getnikola.com/ex
813813
Using a shortcode
814814
~~~~~~~~~~~~~~~~~
815815

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).
817817

818818
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".
819819

@@ -829,6 +829,27 @@ Built-in shortcodes
829829
post-list
830830
Will show a list of posts, see the `Post List directive for details <#post-list>`__
831831

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 %)' %}}
844+
x_labels='["2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012"]'%}}
845+
'Firefox', [None, None, 0, 16.6, 25, 31]
846+
'Chrome', [None, None, None, None, None, None]
847+
'IE', [85.8, 84.6, 84.7, 74.5, 66, 58.6]
848+
'Others', [14.2, 15.4, 15.3, 8.9, 9, 10.4]
849+
{{% /chart %}}{{% /raw %}}
850+
851+
In reStructuredText the quoting needed to pass arguments gets insane really fast, use the chart directive
852+
instead (the syntax is nicer anyway)
832853

833854
Template-based shortcodes
834855
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1388,13 +1409,14 @@ The currently available filters are:
13881409
.. sidebar:: Creating your own filters
13891410

13901411
You can use any program name that works in place as a filter, like ``sed -i``
1391-
and you can use arbitrary python functions as filters, too.
1412+
and you can use arbitrary Python functions as filters, too.
13921413

1393-
If your program doesn't run in-place, then you can use Nikola's runinplace function.
1414+
If your program doesn't run in-place, then you can use Nikola's ``runinplace`` function (from the ``filters`` module).
13941415
For example, this is how the yui_compressor filter is implemented:
13951416

13961417
.. code-block:: python
13971418

1419+
from nikola.filters import runinplace
13981420
def yui_compressor(infile):
13991421
return runinplace(r'yui-compressor --nomunge %1 -o %2', infile)
14001422

‎stories/path_handlers.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
.. slug: path-handlers
33
.. author: The Nikola Team
44

5-
Nikola supports special links with the syntax ``link://kind/name``. Here is
6-
the description for all the supported kinds.
5+
Nikola supports special links with the syntax ``link://kind/name``. In the templates you can also
6+
use ``_link(kind, name)`` Here is the description for all the supported kinds.
77

88
.. class:: dl-horizontal
99

@@ -204,7 +204,7 @@ slug
204204

205205
Example:
206206

207-
links://slug/yellow-camaro => /posts/cars/awful/yellow-camaro/index.html
207+
link://slug/yellow-camaro => /posts/cars/awful/yellow-camaro/index.html
208208

209209

210210
tag

‎stories/social_buttons.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Using Alternative Social Buttons with Nikola
1010
============================================
1111

12-
:Version: v7.7.6
12+
:Version: 7.7.7
1313

1414
.. class:: alert alert-info pull-right
1515

‎stories/theming.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Theming Nikola
1010
==============
1111

12-
:Version: v7.7.6
12+
:Version: 7.7.7
1313
:Author: Roberto Alsina <ralsina@netmanagers.com.ar>
1414

1515
.. class:: alert alert-info pull-right

0 commit comments

Comments
 (0)
Please sign in to comment.