Socket
Socket
Sign inDemoInstall

vuepress-plugin-latest-articles

Package Overview
Dependencies
6
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vuepress-plugin-latest-articles

latest-articles plugin for vuepress


Version published
Maintainers
1
Install size
58.8 kB
Created

Readme

Source

VuePress Latest articles

Latest arricles plugin for VuePress

Show the latest n articles in your Vuepress blog.

Install

Install dependence.

npm install vuepress-plugin-latest-articles
# OR
yarn add vuepress-plugin-latest-articles

Usage

Add plugin in your vuepress config.

// .vuepress/config
module.exports = {
  plugins: [
    "latest-articles"
  ]
}

Now, you can using it in Markdown!

Simple:

<LatestArticles />

More:

<LatestArticles title="My Title" titleTag="h2" number="10" />

Config

date

The updated date base on git, you can only use it with a git repository.

If you set date in frontmatter, it will cover updated date.

---
date: YYYY-MM-DD HH:MM:SS +/-TTTT
---

By default, pages order by last updated commit, you can set it to order by first commit.

// .vuepress/config
module.exports = {
  plugins: [
    "latest-articles",
    { orderByFirstCommit:true }
  ]
}

published

By default, all pages will show up.

Additionally, if there is a special page that you don't want to show up, you can set published to false in frontmatter:

---
published: false
---

title

  • type: String
  • default: "Latest Articles" | "近期文章"

The title.

titleTag

  • type: String
  • default: "h2"

The tag of title element.

number

  • type: Number
  • default: 10

The number of articles.

Keywords

FAQs

Last updated on 22 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc