mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Get HtmlReader to work again
wrote unit tests and documentation, improved regular expression. The HtmlReader is enabled by default now and parses metadata in html files of the form: <!-- key:value -->
This commit is contained in:
parent
88555de28c
commit
39db9ddcfd
7 changed files with 72 additions and 15 deletions
|
|
@ -171,6 +171,17 @@ Markdown posts should follow this pattern::
|
|||
|
||||
This is the content of my super blog post.
|
||||
|
||||
Your third option is to write raw html (by ending your file in ``.html``)::
|
||||
|
||||
<!-- title: My super title -->
|
||||
<!-- date: 2010-12-03 10:20 -->
|
||||
<!-- tags: thats, awesome -->
|
||||
<!-- category: yeah -->
|
||||
|
||||
<p>
|
||||
This is the content of my super blog post.
|
||||
</p>
|
||||
|
||||
Note that, aside from the title, none of this metadata is mandatory: if the date
|
||||
is not specified, Pelican will rely on the file's "mtime" timestamp, and the
|
||||
category can be determined by the directory in which the file resides. For
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue