Commit f88c65c7 authored by cgm616's avatar cgm616

Change date system to be manual (and accurate)

parent 759d7146
......@@ -6,7 +6,6 @@ var permalinks = require('metalsmith-permalinks');
var autoprefixer = require('metalsmith-autoprefixer');
var collections = require('metalsmith-collections');
var drafts = require('metalsmith-drafts');
var updated = require('metalsmith-updated');
var feed = require('metalsmith-feed');
var watch = require('metalsmith-watch');
var serve = require('metalsmith-serve');
......@@ -60,11 +59,10 @@ Metalsmith(__dirname) // instantiate Metalsmith in the cwd
.use(metallic())
.use(markdown())
.use(permalinks({relative: false}))
.use(updated())
.use(dates({
dates: [
{
key: 'created',
key: 'date',
format: 'MMMM Do YYYY'
}
]
......
......@@ -5,7 +5,7 @@ layout: layout.html
<h1 class="title">{{ title }}</h1>
<div class="info">
<ul class="flat-list">
<li>created on {{ created }}</li>
<li>created on {{ date }}</li>
<li>{{ wordCount }} words</li>
<li>{{ readingTime }} long</li>
</ul>
......
......@@ -33,7 +33,7 @@ Y88b. Y88b 888 888 888 888 Y88b d88P 888 Y88b d88P
<ul class="post-list">
{{#each collections.articles }}
<li><a href="/{{ this.path }}/">{{ this.created }}: {{ this.title }}</a></li>
<li><a href="/{{ this.path }}/">{{ this.date }}: {{ this.title }}</a></li>
{{/each }}
</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment