Socket
Socket
Sign inDemoInstall

hexo-related-popular-posts

Package Overview
Dependencies
238
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hexo-related-popular-posts

A hexo plugin that generates a list of links to related posts and popular posts. Also , this plugin can get Visitor Counts (PageView) on posts.


Version published
Weekly downloads
1K
decreased by-0.67%
Maintainers
1
Install size
65.8 MB
Created
Weekly downloads
 

Readme

Source

Build Status Coverage Status NPM version

A hexo plugin that generates a list of links to related posts or popular posts.

DEMO | Wiki | Documents | Releases(Update)

Screenshot

Requirements

If you are using an older hexo version, please use the follows version. For example, if you using prior to hexo v5.0 now, please npm install hexo-related-popular-posts@4.2.0.

hexo versionthis plugin version
v3.2 or later2.0.6
prior to v5.04.0.0

Overview


Installation

$ npm install hexo-related-popular-posts --save

If you occur ERROR Plugin load failed: error or DTraceProviderBindings.node error , please see below.


Simply Usage

1. Edit your theme

First, add the following popular_posts( {} , post ) helper tag in template file for article. For example , if you use hexo-theme-landscape , add a tag here.

  <%-
    popular_posts( {} , post )
  %>

Variable name post is different depending on theme. Helper tag can set more option and customize the design . For detail , please see the wiki.

Also , if you occur Cannot read property 'tags' of undefined error , please refer to the follow as.

2. Add tags in markdown

If tags are included in the article, related articles can be displayed as a list. For example, add a tag like the following markdown file.

---
title: Hello World
tags:
  - program
  - diary
  - web
---
Welcome to [Hexo](https://hexo.io/)! This is a sample article. Let's add some tags as above.
...

The larger the number of matching tags, the more relevant articles are displayed as candidates. Otherside , advanced related posts and popular posts can be displayed. Please see the wiki .

3. Run server

Starts a local server. By default, this is at http://localhost:4000/.

$ hexo clean
$ hexo server

Thank you for introduction.

Thank you for a wonderful plugin.

License

MIT

Keywords

FAQs

Last updated on 29 Aug 2020

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