npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexo-generator-exindex

v1.0.3

Published

Extenp hexo-generator-index to provide topping and hiding specified articles on the homepage through specified tags.

Downloads

5

Readme

hexo-generator-exindex

license npm version languages-count code-size last-commit

Extenp hexo-generator-index to provide topping and hiding specified articles on the homepage through specified tags.

Installation

npm install hexo-generator-exindex --save
npm uninstall hexo-generator-index --save

Hint: If you have install hexo-generator-index, for avoiding conflict, you should unintall it.

Feature

  • include all of hexo-generator-index feat
  • Pin-top
  • pin-bottom
  • exclude

Config

The following is an example of a complete configuration.

exindex_generator_enable: true
exindex_generator:
  path: ''
  per_page: 10
  order_by: -date
  pagination_dir: page
  pin_top:
    tags: topping1,topping2
  pin_bottom:
    tags: bottoming1,bottoming2
  exclude:
    tags: hidden1,hidden2

pin-top

Setting front-matter tags which you set in root _config.yml like that:

---
title: Isaac Blog
tags:
  - topping1
date: 2023-04-11 18:19:51
---

pin-bottom

---
title: Isaac Blog
tags:
  - bottoming1
date: 2023-04-11 18:19:51
---

Hint: When pin-top and pin-bottom appear simultaneously, the latter has a higher priority.

exclude

---
title: Isaac Blog
tags:
  - hidden1
date: 2023-04-11 18:19:51
---

Options

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

exindex_generator_enable: true
exindex_generator:
  path: ''
  per_page: 10
  order_by: -date
  pagination_dir: page
  pin_top:
    tags: topping
  pin_bottom:
    tags: bottoming # exclude article which tag is Hexo, exp tags: <tag1>[,<tag2>,...]
  • exindex_generator_enable: on or off this plugins.
  • 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: URL format.
    • default: 'page'
    • awesome-page makes the URL ends with 'awesome-page/' for second page and beyond.
  • pin_top: Bring the article to the top.
    • default: ""
    • tags: <tag1>[,<tag2>,...], you need to set these tags at fron-matter!
  • pin_bottom: Bring the article to the bottom.
    • default: ""
    • tags: <tag1>[,<tag2>,...]
  • exclude: Hide corresponding articles through tags.
    • default: ""
    • tags: <tag1>[,<tag2>,...]

License

MIT @ isaaxite