0.0.2 • Published 6 years ago

plugin-post-suggestions v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

plugin-post-suggestions

A unofficial Vuepress plugin to add a suggestion box of similar posts to a webpage.

Installation

Install the plugins module:

yarn add plugin-post-suggestions

Enable the plugin by adding it to the vuepress project's plugins:

plugins: [
    ['../../node_modules/plugin-post-suggestions']
]

Adding Components

The plugin has one component that you can add to your layout. This component will create a grid of posts to suggest for the user. This is based on the tags listed for the current post the user is reading.

<div>
    <PostSuggestions />
</div>

<script>
import PostSuggestions from "@PostSuggestions"

export default {
  components: {
    PostSuggestions,
  }
}
</script>

Configuration

At the moment there is no configuration available for the plugin. Some possible improvements could be:

  • Number of suggestions to show
  • Tags vs Categories