openhab / website

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

Add feed to blog folder #313

Closed Confectrician closed 2 years ago

Confectrician commented 2 years ago

Like described in the title.

Fixes #31

Community Reference: https://community.openhab.org/t/rss-feed-for-openhab-blog/77947?u=confectrician

Confectrician commented 2 years ago

Looks good so far.

https://61c1e79433c71100088c2b5c--openhab.netlify.app/rss.xml

ghys 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.