chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
577 stars 262 forks source link

Improve series functionality #432

Open Tekki opened 1 year ago

Tekki commented 1 year ago

Pull Request type

Please check the type of change your PR introduces:

Current state

Issue Number(s): #430

Proposed changes

The PR consists of 3 commits:

  1. Correction of the series entries in the example site; series is a single value, not an array.

  2. Changes at the code. The entries in params.toml by the original author of the series functionality

    # showRelatedInArticle = false
    # showRelatedInSidebar = false

    suggest that the default value of this variables is false. The code should behave accordingly. Then I thought it could be useful if both variables can be overridden in a post.

  3. Posts in series sorted by date ascending. In my opinion the articles in series build a sequence and are intended to be read in chronological order, oldest first.

Screenshots, if applicable

Checklist

Tekki commented 1 year ago

I am adhering to the Developer Certificate of Origin.