# gatsby-lumen-post-generator

> Easily create new skeleton posts for use with the Gatsby Lumen blog template.

Latest version **1.0.4** (published 2018-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-lumen-post-generator
pnpm add gatsby-lumen-post-generator
yarn add gatsby-lumen-post-generator
bun add gatsby-lumen-post-generator
```

Provides the command `lumen-post`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-02-19 |
| First published | 2018-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Reed Jones |
| Maintainers | reed-jones |
| Keywords | gatsby, lumen, blog, markdown |

## Links

- npm: https://www.npmjs.com/package/gatsby-lumen-post-generator
- Repository: https://github.com/reed-jones/gatsby-lumen-post-generator
- Homepage: https://github.com/reed-jones/gatsby-lumen-post-generator#readme
- Issues: https://github.com/reed-jones/gatsby-lumen-post-generator/issues
- npm.io page: https://npm.io/package/gatsby-lumen-post-generator

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2018-02-19
- 1.0.3 — 2018-02-12
- 1.0.2 — 2018-02-12
- 1.0.1 — 2018-02-12
- 1.0.0 — 2018-02-12

## README

# Gatsby Lumen Post Generator

The [Lumen](https://github.com/alxshelepenok/gatsby-starter-lumen) post generator is a simple skeleton generator that will add a new post to your lumen blog and automate the directory structure creation and much of the frontmatter creation.

simply run `yarn lumen-post` and pass it the desired options. alternatively, if your an npm fan add `"lumen-post": "lumen-post",` to your package.json scripts.

Options are added using key="value" at the commandline. Only the title option is required. Available options are as follows:

* `title` (_required_)
* `category` (or just `cat`)
* `description` (or just `desc`)
* `tags` (comma seperated list)

Example:

```zsh
yarn lumen-post title="My First Generated Post" category="General Interest" desc="This is just a throw away blogpost I'm creating to demonstrate the post generator" tags=new,cool,wow,easy
```

this creates the directory: `src/pages/articles/2018-02-11---My-First-Generated-Post` containing an `index.md` file refilled with all the front matter you entered, with draft mode enabled so you don't accidentally add a new post to your website before its ready.

your fresh `index.md` should look something like this:

```yml
---
title: "My First Generated Post"
date: "2018-02-12T00:08:01.358Z"
layout: post
draft: true
path: "/posts/my-first-generated-post/"
category: ""
tags:
  - "new"
  - "cool"
  - "wow"
  - "easy"
description: "This is just a throw away blogpost I'm creating to demonstrate the post generator"
---
```

---
_Source: https://npm.io/package/gatsby-lumen-post-generator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
