1. metalsmith-rss
Metalsmith plugin to generate rss feed
metalsmith-rss
Package: metalsmith-rss
Created by: MoOx
Last modified: Tue, 15 Aug 2023 10:01:39 GMT
Version: 1.0.0
License: MIT
Downloads: 29
Repository: https://github.com/MoOx/metalsmith-rss

Install

npm install metalsmith-rss
yarn add metalsmith-rss

metalsmith-rss Travis Build Status

Metalsmith plugin to generate rss feed

Installation

 $ npm install metalsmith-rss

Usage

 import Metalsmith from "metalsmith"
import collections from "metalsmith-collections"
import rss from "metalsmith-rss"

new Metalsmith("./")
  .use(
    collections({
      //...
    })
  )
  .use(
    rss({
      feedOptions: {
        title: "test",
        site_url: "http://test.test",
      },
    })
  )
  .build(err => {if (err) {throw err}})

Options

feedOptions

RSS options

site_url is mandatory.

collections (default: "posts")

Collection to use

limit (default: 20)

Limit of items to put in the rss feed

encoding (default: "utf8")

RSS encoding

destination (default: "rss.xml")

Destination of the rss feed

Changelog

License

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code