Comparing version 0.7.9 to 0.8.0
{ | ||
"name": "writr", | ||
"version": "0.7.9", | ||
"version": "0.8.0", | ||
"description": "A Simple to Use Markdown Blog", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
@@ -59,2 +59,25 @@ ![Writr](logo.png) | ||
## Template Partials | ||
You can use template partials such as a header or footer by creating a folder in templates called `partials`. In there create a standard handlebars template file such as `header.hjs`. To reference it go to any of the main template files and include it like `{{> header}}`: | ||
```html | ||
<h1>Post</h1> | ||
{{> header}} | ||
<p>{{post.title}}</p> | ||
<p>{{post.author}}</p> | ||
<p>{{{post.body}}}</p> | ||
<p>{{post.matter.featured_image}}</p> | ||
<p>{{previousPost.id}}</p> | ||
<p>{{nextPost.id}}</p> | ||
... | ||
``` | ||
## Different Layouts | ||
@@ -118,3 +141,3 @@ | ||
--- | ||
title: 'Docula: Persistent Links and Styles!' | ||
title: 'Docula: Persistent Links and Styles!' | ||
tags: | ||
@@ -124,3 +147,3 @@ - Github | ||
- Docula | ||
permalink: simple | ||
permalink: date | ||
date: 2017-03-07 | ||
@@ -132,2 +155,4 @@ layout: post2 | ||
The url will be: `/2017/03/07/docula-persistent-links-and-styles` | ||
### Set it Globally | ||
@@ -134,0 +159,0 @@ |
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
81864
172