{"id":15538871,"url":"https://github.com/dschau/create-gatsby-blog-post","last_synced_at":"2025-04-23T15:41:54.075Z","repository":{"id":57109885,"uuid":"96724513","full_name":"DSchau/create-gatsby-blog-post","owner":"DSchau","description":"Simple command line interface to scaffold out a blog post folder structure","archived":false,"fork":false,"pushed_at":"2018-02-09T15:41:16.000Z","size":51,"stargazers_count":34,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T02:22:52.964Z","etag":null,"topics":["blog-post","cli","gatsby","javascript","node","post","scaffold"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DSchau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-10T01:44:04.000Z","updated_at":"2023-05-12T16:48:02.000Z","dependencies_parsed_at":"2022-08-20T20:20:15.264Z","dependency_job_id":null,"html_url":"https://github.com/DSchau/create-gatsby-blog-post","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSchau%2Fcreate-gatsby-blog-post","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSchau%2Fcreate-gatsby-blog-post/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSchau%2Fcreate-gatsby-blog-post/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSchau%2Fcreate-gatsby-blog-post/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DSchau","download_url":"https://codeload.github.com/DSchau/create-gatsby-blog-post/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250462242,"owners_count":21434541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog-post","cli","gatsby","javascript","node","post","scaffold"],"created_at":"2024-10-02T12:07:07.508Z","updated_at":"2025-04-23T15:41:54.053Z","avatar_url":"https://github.com/DSchau.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `create-gatsby-blog-post`\n\n[![Build Status](https://travis-ci.org/DSchau/create-gatsby-blog-post.svg?branch=master)](https://travis-ci.org/DSchau/create-gatsby-blog-post)\n\nA utility and CLI to scaffold out a blog post that follows the gatsby `pages/` format, including a MD file with some default frontmatter (data) set up.\n\n## Set up\n\n`yarn add @dschau/create-gatsby-blog-post --dev`\n\nor for global usage\n\n`yarn global add @dschau/create-gatsby-blog-post`\n\n## Usage\n\n### `createPost(post: string, [options])`\n\n```javascript\nconst { createPost } = require('create-gatsby-blog-post');\n\ncreatePost('hello-world'); // will create the folder `src/pages/YYYY-MM-DD-hello-world` with `index.md` inside\n```\n\n#### Options\n\n|Name|Description|Default|\n|:--:|-----------|:-----:|\n|`date`|Pass in a custom date object to use as the \"now\" value|`+new Date()`|\n|`dateFormat`|Format the date according to a [date-fns format string](https://date-fns.org/docs/format)|`YYYY-MM-DD`|\n|`root`|Root directory to use to place the blog post/markdown file|`src/pages`|\n|`tags`|Whether to place frontmatter \"tags\" key in each post|`true`|\n\n### CLI\n\n```bash\ncreate-post -- --date-format \"YYYY-MMM-DD\" hello-world\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdschau%2Fcreate-gatsby-blog-post","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdschau%2Fcreate-gatsby-blog-post","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdschau%2Fcreate-gatsby-blog-post/lists"}