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 🙏

© 2026 – Pkg Stats / Ryan Hefner

wintersmith-tag-pages

v0.1.1

Published

Wintersmith plugin for generating tag pages

Downloads

20

Readme

wintersmith-tag-pages

wintersmith-tag-pages is a plugin that generates tag page indexes for either:

  • every tag used in every article
  • a set of specified tags defined in config.json

Requirements

This repo is meant to be used as a plugin for Wintersmith-generated websites. To use this plugin, simply setup a wintersmith website and follow the setup instructions below.

Setup

Setting up the plugin is very simple:

npm install wintersmith-tag-pages

Alternatively, you can define the plugin as a dependency in your package.json file and run:

npm install

In your config.json file, you must define the location of the plugin:

"plugins": [
  "./node_modules/wintersmith-tag-pages/"
]

Configuration

You may configure how the tag page generators creates the tag index pages.
Simply add a tagPages configuration object hash in config.json:

"tagPages": {
  "perPage": 2
}

Options

The following is a list of all available options. You can define these in the tagPages configuration object hash.

Name | Default | Description -------------|------------------------|----------------------------------------------- template | tags.jade | template file to generate the tag pages first | tag/%t/index.html | permalink for the first page in each tag index filename | tag/%t/%d/index.html | permalink for every subsequent tag page filter | [] | array of tags to generate pages for; if empty, pages for all tags will be generated perPage | 2 | number of articles to display for each tag page

  • %t - The tag name
  • %d - The page number

Usage

Once you have completed the setup and configuration, the plugin will be invoked during each wintersmith build.

Be sure to create a template file that can be used to render the tag pages. By default, the plugin will look for a file called tags.jade, but you can override this setting using the configuration options described above.

The specified template will have access to the following data:

  • prevPage - The article object of the previous page in a tag's index.
  • nextPage - The article object of the next page in a tag's index.
  • tag - The name of the tag whose index is being rendered.
  • articles - The list of articles for the current tag page.

Use this data to help build the template used to generate your tag pages. Don't forget to check whether or not prevPage and nextPage exists.

License

"wintersmith-tag-pages" is Copyright (c) 2014 by Byron Sanchez, licensed under the GNU GPL v2.0.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.