npm install
npm run build
npm run dev
http://localhost:3000
is default)Add new file my-super-article.md
to src/posts
. Content of the file as follows:
---
template: post.html
title: "Article title goes here"
date: 2018-03-28 00:00:00
image: image-to-be-used-for-preview.png
author:
name: name
twitter: "@handle"
link: https://github.com/name/
description: short summary of the article and will be shown in twitter preview.
---
Text of the article goes here
Adjust filename, title
, date
, image
and text.
/blog/my-super-article
.title
- article name. Shown on the article list page and on the article page.date
- article publishing date. Shown on the article list page and on the article page.
Articles on the article list page are sorted by this date (latest first).author
- (optional) either an author name or an object with author details:
name
— nametwitter
— (optional) twitter handle. Will be used in link and in twitter:cardlink
— (optional) arbitrary link. If both link
and twitter
specified, twitter
will be used.description
- short summary of the post to be used in previews and snippets (e.g. twitter)Commit the file to github. Our CI server will do the rest and your article will be available
shortly at test.leapdao.org/blog/my-super-article
.