Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Date not added to post frontmatter #98

Open
2 of 3 tasks
travis-w opened this issue Feb 19, 2021 · 0 comments
Open
2 of 3 tasks

Date not added to post frontmatter #98

travis-w opened this issue Feb 19, 2021 · 0 comments

Comments

@travis-w
Copy link

  • I confirm that this is an issue rather than a question.

Bug report

I have been messing around with VuePress the last couple days along with the blog plugin. I am working on creating my own theme and noticed the blogs were being "sorted" oldest to newest and I wanted to reverse it. I found the sorter function and console.logged the prev.frontmatter.date and next.frontmatter.date and both are undefined. It doesn't look like the dates are getting added to the frontmatter of posts at all.

Steps to reproduce

What is expected?

  • Newest blog (according to dates in filename) should show first.
  • Dates for blogs should be logged in console (from sorter in /.vuepress/config.js)

What is actually happening?

  • Oldest blog is showing first
  • undefined being logged in console for dates in frontmater

Other relevant information

  • npx vuepress info:
    Environment Info:

    System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Binaries:
    Node: 14.2.0 - ~/.nvm/versions/node/v14.2.0/bin/node
    Yarn: Not Found
    npm: 7.5.3 - ~/.nvm/versions/node/v14.2.0/bin/npm
    Browsers:
    Chrome: 88.0.4324.182
    Edge: Not Found
    Firefox: Not Found
    Safari: 13.1.3
    npmPackages:
    @vuepress/core: 1.8.2
    @vuepress/theme-default: 1.8.2
    vuepress: ^1.5.3 => 1.8.2
    npmGlobalPackages:
    vuepress: Not Found

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant