Socket
Book a DemoInstallSign in
Socket

metalsmith-archive

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-archive

creates an archive of posts

0.1.1
latest
npmnpm
Version published
Weekly downloads
14
600%
Maintainers
1
Weekly downloads
 
Created
Source

Metalsmith Archive Build Status

Create archive metadata for all your posts

Installation

npm install --save-dev metalsmith-archive

Usage

JavaScript API:

var Metalsmith = require('metalsmith');
var archive = require('metalsmith-archive');

Metalsmith()
    .use(archive());

Options

collections

The folder your posts live in. Defaults to "posts"

dateFields

The fields to search through froup grouping. Defaults to ['publishDate', 'modifiedDate', 'date']. The first field found is considered the date to group it in

groupByMonth

Group your posts by month? Defaults to true. Pass in false to disable this functionality.

listSortOrder

Sort years asc or desc. Defaults to desc

monthSortOrder

Sort months asc or desc. Defaults to desc

postSortOrder

Sort posts asc or desc. Defaults to desc

locale

The language locale to use. This affects the months being returned. Accepts any valid moment locale

Notes

The metalsmith cli workflow has not been tested

FAQs

Package last updated on 12 Jun 2015

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.