What is metadata format when using html for pages?

18 views
Skip to first unread message

srust

unread,
May 25, 2016, 8:40:24 AM5/25/16
to nikola-discuss
Hello,

I suspect the metadata lines at the beginning of an 'rst' file created with `nikola new_page` need to be put in the `header` section of `html` page (story), when creating, say, an index.html page.

I have a difficulty locating the format of the `header section when using `html` as source. Is there a sample file translating `rst` heders to html header section?  

Chris Warrick

unread,
May 25, 2016, 11:09:54 AM5/25/16
to Nikola—Discuss
Those headers end up as a HTML comment, like this:

<!--
.. title: Hello world
.. slug: hello-world
(and so on)
-->

However, we recommend using

$ nikola new_page -f html

to create HTML posts.

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

srust

unread,
May 26, 2016, 9:15:45 AM5/26/16
to nikola-discuss
Thank you.
Reply all
Reply to author
Forward
0 new messages