Nikola v7.8.7 is out!

12 views
Skip to first unread message

Chris Warrick

unread,
Jun 5, 2017, 11:14:06 AM6/5/17
to nikola-...@googlegroups.com, python-ann...@python.org
On behalf of the Nikola team, I am pleased to announce the immediate
availability of Nikola v7.8.7. This is a part-emergency bugfix,
part-world domination release.


What is Nikola?
===============

Nikola is a static site and blog generator, written in Python.
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).

Find out more at the website: https://getnikola.com/

Downloads
=========

Install using `pip install Nikola` or download tarballs on GitHub and PyPI:

https://github.com/getnikola/nikola/releases/tag/v7.8.7
https://pypi.python.org/pypi/Nikola/7.8.7

Changes
=======

In an effort to improve interoperability with other static site
generators, make importing data easier, and help with world
domination, Nikola v7.8.7 ships with support for the following
metadata formats:

* reST-style comments (.. name: value — default format)
* Two-file format (reST-style comments or 7-line)
* Jupyter Notebook metadata
* YAML, between --- (Jekyll, Hugo)
* TOML, between +++ (Hugo)
* reST docinfo (Pelican)
* Markdown metadata extension (Pelican)

In addition, Markdown is now enabled and required by default.
More details: <https://getnikola.com/handbook.html#metadata-formats>

The release also fixes two important bugs, one that crashes when
trying to detect locale in some edge cases, and another which made
some themes quietly leak template files. If you’re using a
Jinja2-based theme that does not have its own `parent` file, please
force a rebuild (nikola build -a).

Features
--------

* Enable markdown by default (part of Issue #2809)
* Allowing to register filters from plugins, and allowing to specify
default filters as strings of the form ``filters.<name>`` (part of
Issue #2475)
* Support ignoring assets via ``ignore_assets`` theme meta field
(Issue #2812)
* Ignore unused Colorbox locales (Issue #2812)
* Accept tag metadata as lists for YAML/TOML (Issue #2801)
* Support for mapping metadata from other formats to Nikola names
using the ``METADATA_MAPPING`` setting (Issue #2817)
* Support for reStructured text docinfo metadata with
``USE_REST_DOCINFO_METADATA`` option, defaulting to False
(Issue #1923)
* New ``HIDE_REST_DOCINFO`` option, defaulting to False.
* Support for Markdown Metadata for Pelican compatibility by adding
``'markdown.extensions.meta'`` to ``MARKDOWN_EXTENSIONS``
(Issue #1923)
* Support for YAML and TOML metadata (Issue #2801)

Bugfixes
--------

* Use inheritance tree when looking for theme engine (Issue #2816)
* Fix unbound variable error in locale guessing (Issue #2806)

signature.asc

Gour

unread,
Jun 11, 2017, 8:29:03 AM6/11/17
to nikola-...@googlegroups.com
On Mon, 5 Jun 2017 17:14:00 +0200
Chris Warrick <kwpo...@gmail.com> wrote:

I'm trying new metadata support and with:

> * reST-style comments (.. name: value — default format)

I get:

$ nikola build -a
Scanning posts.[2017-06-11T12:21:03Z] ERROR: Nikola: Missing date in file blog/1.rst
[2017-06-11T12:21:03Z] ERROR: scan_posts: Error reading post blog/1.rst
[2017-06-11T12:21:03Z] ERROR: Nikola: Error reading timeline
[2017-06-11T12:21:03Z] ERROR: Nikola: Error loading tasks. An unhandled exception occurred.
[2017-06-11T12:21:03Z] ERROR: Nikola: ValueError: Missing date in file blog/1.rst

for the following meta data:

+++
title = "Welcome to Nikola"
slug = "welcome-to-nikola"
date = "2012-03-30 23:00:00"
tags = [ "nikola", "python", "demo", "blog" ]
author = "Roberto Alsina"
link = "https://getnikola.com/"
category = "nikola"
+++

and similar thing with

> * TOML, between +++ (Hugo)

for the following metadata:

date = "2011-02-09 11:13:01 UTC"

within Asciidoc post.

if I try with YAML's:

---
title: Happy Birthday
slug: happy-birthday
date: 2011-02-09 11:13:01 UTC+01:00
tags: [ "gaura-nitai", "prasadam" ]
category: devotional
---

there is no error, but the metadata is just rendered untouched.

What do I miss?


Sincerely,
Gour

--
Never was there a time when I did not exist,
nor you, nor all these kings; nor in the future
shall any of us cease to be.


Reply all
Reply to author
Forward
0 new messages