And Now Back to Your Regular Programming

To show how this feature works, with a concrete example, this article was purposefully split into two parts. The first part of this article can be accessed by looking under the section labelled Article Series on the right toolbar. This Part 1 article is displayed using normal text, while the following Part 2 article is shown in an italicized text. Click on the Part 1 article text on the right toolbar to go to the previous article.

Article Metadata

Once the configuration for Series is enabled in the configuration file, using this feature for a given set of articles requires that the article contains the series metadata field value.

The text assigned to the series metadata field is the title of the series. When the page is created, Pelican provides Elegant with a list of all pages that have the same value for the series metadata field. By default, Elegant sorts that list according to the publish date for each article. The titles for those pages is then displayed in sorted order, with the current page presented in italics and the other pages presented as a link to those pages.

series: Maximizing Elegant
series_index: 2

If there is a reason to override the ordering of the articles, the series_index metadata field is required. It is recommended that you use the part number you want displayed for the article as the value to assign to the field.

Понравилась статья? Расскажите о ней на: TwitterFacebookEmail


Jack De Winter ever evolving, ever learning

Что почитать


Дата

На ту же тему

Категория

Supported Plugins

Тэги

Будьте с нами