Comparing version 0.8.1 to 0.8.2
{ | ||
"name": "writr", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "A Simple to Use Markdown Blog", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
@@ -9,3 +9,3 @@ ![Writr](logo.png) | ||
[![codecov](https://codecov.io/gh/jaredwray/writr/branch/master/graph/badge.svg)](https://codecov.io/gh/jaredwray/writr) | ||
[![npm](https://img.shields.io/npm/dw/writr)](https://npmjs.com/packages/writr) | ||
[![npm](https://img.shields.io/npm/dm/writr)](https://npmjs.com/packages/writr) | ||
@@ -65,3 +65,2 @@ --- | ||
```html | ||
<h1>Post</h1> | ||
@@ -79,8 +78,14 @@ | ||
<p>{{nextPost.id}}</p> | ||
... | ||
``` | ||
## Template Helpers | ||
`formatDate` is supported in the template to help format the date via `handlebars`: | ||
```html | ||
<p>The short date for this blog post is: {{formatDate post.date "MM/DD/YYYY"}} | ||
``` | ||
## Different Layouts | ||
## Different Templates / Layouts | ||
@@ -87,0 +92,0 @@ You can also set a post to use a different layout by setting the `layout` value in the `front-matter` like so: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82322
177
2