mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Improve content metadata field docs (#2620)
Improve content metadata field docs
This commit is contained in:
commit
c81e68e895
1 changed files with 23 additions and 16 deletions
|
|
@ -71,22 +71,29 @@ Metadata syntax for Markdown posts should follow this pattern::
|
||||||
This is the content of my super blog post.
|
This is the content of my super blog post.
|
||||||
|
|
||||||
You can also have your own metadata keys (so long as they don't conflict with
|
You can also have your own metadata keys (so long as they don't conflict with
|
||||||
reserved metadata keywords) for use in your python templates. The following is
|
reserved metadata keywords) for use in your templates. The following table
|
||||||
the list of reserved metadata keywords:
|
contains a list of reserved metadata keywords:
|
||||||
|
|
||||||
* `Title`
|
=============== ===============================================================
|
||||||
* `Tags`
|
Metadata Description
|
||||||
* `Date`
|
=============== ===============================================================
|
||||||
* `Modified`
|
``title`` Title of the article or page
|
||||||
* `Status`
|
``date`` Publication date (e.g., ``YYYY-MM-DD HH:SS``)
|
||||||
* `Category`
|
``modified`` Modification date (e.g., ``YYYY-MM-DD HH:SS``)
|
||||||
* `Author`
|
``tags`` Content tags, separated by commas
|
||||||
* `Authors`
|
``keywords`` Content keywords, separated by commas (HTML content only)
|
||||||
* `Slug`
|
``category`` Content category (one only — not multiple)
|
||||||
* `Summary`
|
``slug`` Identifier used in URLs and translations
|
||||||
* `Template`
|
``author`` Content author, when there is only one
|
||||||
* `Save_as`
|
``authors`` Content authors, when there are multiple
|
||||||
* `Url`
|
``summary`` Brief description of content for index pages
|
||||||
|
``lang`` Content language ID (``en``, ``fr``, etc.)
|
||||||
|
``translation`` Is content is a translation of another (``true`` or ``false``)
|
||||||
|
``status`` Content status: ``draft``, ``hidden``, or ``published``
|
||||||
|
``template`` Name of template to use to generate content (without extension)
|
||||||
|
``save_as`` Save content to this relative file path
|
||||||
|
``url`` URL to use for this article/page
|
||||||
|
=============== ===============================================================
|
||||||
|
|
||||||
Readers for additional formats (such as AsciiDoc_) are available via plugins.
|
Readers for additional formats (such as AsciiDoc_) are available via plugins.
|
||||||
Refer to `pelican-plugins`_ repository for those.
|
Refer to `pelican-plugins`_ repository for those.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue