Skip to content

leapdao/leapdao-website

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

facd372 · May 8, 2021
Apr 2, 2020
Nov 6, 2019
Nov 6, 2019
Apr 2, 2020
Nov 6, 2020
Nov 6, 2020
Nov 6, 2019
Dec 6, 2019
Apr 2, 2020
Oct 30, 2019
Nov 6, 2019
Nov 6, 2019
May 8, 2021
Sep 25, 2020
Jun 17, 2020
Nov 6, 2019

Repository files navigation

leapdao-website

Init

npm install

Build

npm run build

Running locally

  1. npm run dev
  2. Open it in the browser (http://localhost:3000 is default)

Adding blog articles

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.

  • filename - will be used in article URL. E.g. /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 — name
    • twitter — (optional) twitter handle. Will be used in link and in twitter:card
    • link — (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)
  • text - text of the article in Markdown format.

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.