1
0
Fork 0
forked from github/pelican

Add support for hidden articles

This commit is contained in:
Gio 2021-04-16 19:07:35 -05:00 committed by Justin Mayer
commit add3628a64
8 changed files with 70 additions and 14 deletions

View file

@ -614,6 +614,14 @@ the ``DEFAULT_METADATA``::
To publish a post when the default status is ``draft``, update the post's
metadata to include ``Status: published``.
Hidden Posts
============
Like pages, posts can also be marked as ``hidden`` with the ``Status: hidden``
attribute. Hidden posts will be output to ``ARTICLE_SAVE_AS`` as expected, but
are not included by default in tag or category indexes, nor in the main
article feed. This has the effect of creating an "unlisted" post.
.. _W3C ISO 8601: https://www.w3.org/TR/NOTE-datetime
.. _AsciiDoc: https://www.methods.co.nz/asciidoc/
.. _pelican-plugins: https://github.com/getpelican/pelican-plugins

View file

@ -66,9 +66,9 @@ Common variables
All of these settings will be available to all templates.
============= ===================================================
=============== ===================================================
Variable Description
============= ===================================================
=============== ===================================================
output_file The name of the file currently being generated. For
instance, when Pelican is rendering the home page,
output_file will be "index.html".
@ -80,6 +80,7 @@ articles The list of articles, ordered descending by date.
in the `all_articles` variable.
dates The same list of articles, but ordered by date,
ascending.
hidden_articles The list of hidden articles
drafts The list of draft articles
authors A list of (author, articles) tuples, containing all
the authors and corresponding articles (values)
@ -90,7 +91,7 @@ tags A list of (tag, articles) tuples, containing all
pages The list of pages
hidden_pages The list of hidden pages
draft_pages The list of draft pages
============= ===================================================
=============== ===================================================
Sorting