openhab / website

This repository contains the final artifacts from which the project website is served.
https://www.openhab.org/
20 stars 47 forks source link

Enhance feed representation #328

Closed Confectrician closed 2 years ago

Confectrician commented 2 years ago

Looks good however the entries are not sorted in https://openhab.org/rss.xml (my RSS clients does sort them though), still it could maybe be done: see https://github.com/webmasterish/vuepress-plugin-feed#default-options

  // optional sorting function for the entries. 
  // Gets the array entries as the input, expects the sorted array
  // as its output.
  // e.g.:   sort:  entries => _.reverse( _.sortBy( entries, 'date' ) ),
  // Don't forget to do a `const _ = require('lodash');` to be able to use `_`!

  sort: entries => entries,

Also https://github.com/openhab/website/blob/main/add-blog-meta.rb could add feed-specific metadata to posts, like feed.author and feed.image.

Originally posted by @ghys in https://github.com/openhab/website/issues/313#issuecomment-1002123996

Confectrician commented 2 years ago

You are right @ghys.

I will look into ti, when the endless dependabot prs have been merged.

At least the sorting should be pretty simple. It also looks like the plugin already recognizes many of our frontmatter (excerpt, for example).