Socket
Socket
Sign inDemoInstall

writr

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

writr - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

2

package.json
{
"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:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc