webmasterish / vuepress-plugin-feed

RSS, Atom, and JSON feeds generator plugin for VuePress 1.x
MIT License
48 stars 13 forks source link

Feed not exporting all "enabled" markdown pages #5

Closed staghouse closed 5 years ago

staghouse commented 5 years ago

Description

I have added the following to all my markdown pages in frontmatter in Vuepress

{
  ...
  "feed": {
    "enable": "true"
  }
}

yet not all pages get added to my exported file.

Expected Behavior

All routes should be included in the outputted file. For me that is atom.xml

Actual Behavior

Not all routes get included for not clear reason. Virtually all pages have the same type of frontmatter data with the enable flag set to true at the bottom of the JSON (my preferred structure of frontmatter)

Steps to Reproduce

  1. add the above frontmatter json
  2. vuepress build docs
  3. view outed files in dist

Your Environment

Description Value
vuepress-plugin-feed version 0.1.6
node version ^11.9.0
npm version yarn ^1.6.0
browser not relevant
OS macOs 10.14.4
webmasterish commented 5 years ago

Hi @staghouse

There are 2 functionalities that control the pages that get added to a feed:

  1. The is_feed_page() function, which you can optionally override in plugin options.
  2. The max count of feed items (defaults to 20),) also controlled through plugin options.

If that doesn't solve it, then I would be needing more details such as sharing your VuePress project.

staghouse commented 5 years ago

Thank you, the "count" key is what I had been missing. I adjusted that to overcompensate for the pages that I actually needed which was just over 20.