New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hexo-generator-indexed

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-generator-indexed

Index generator for Hexo.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38
decreased by-11.63%
Maintainers
1
Weekly downloads
 
Created
Source

hexo-generator-indexed

Npm Version Npm Downloads Month Npm Downloads Total License

Index generator for Hexo.

Installation

$ npm install hexo-generator-indexed --save

Options

Add or modify the following section to your root _config.yml file

index_generator:
  path: ''
  per_page: 10
  order_by: -date
  • path: Root path for your blog's index page.
    • default: ""
  • per_page: Posts displayed per page.
    • default: config.per_page as specified in the official Hexo docs (if present), otherwise 10
    • 0 disables pagination
  • order_by: Posts order.
    • default: date descending

pagination_dir

Feature & Usage

增加置顶功能

在文章的Front Matter(即开头设置)中增加一个sticky参数用来置顶,数字越大越高

---
title: example
sticky: 100
---

采用sticky关键词是因为这个在NexT主题中已经定义了置顶样式,因此可以直接拿来使用

增加隐藏功能

在文章的Front Matter中增加一个hide参数用来隐藏

---
title: example
hide: true
---

隐藏特定分类中的文章

在Hexo的_config.yml中可以设置隐藏某个分类下的文章,例如

hide_categories:
  - categorie1
  - categorie2

License

MIT

Keywords

FAQs

Package last updated on 29 Mar 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc