working live sample: https://itme.jansolo.dev (GithubPages + CNAME)
/src/routes/_meta.js
- site wide-related metadata/posts/*.md
- blog posts._travis.yml
- Travis-CI template to auto-deploy blog in your GithubPages.Requirements:
- Sapper/Svelte little knowledge
- Github and Travis-CI account.
- GithubPage/repo (yourusername.github.io) see https://pages.github.com/ for details
- *master* and *dev* branches
- master branch will contain the `export`ed Blog
- dev branch will contain the Blog stack
$> npx degit jan-so7o/jan-so7o.github.io#dev my-blog
$> cd my-blog
$> npm run dev
$> npm run export_
and deploys the ___sapper__/export
contents to the master branch in github.---
title: Post Title
summary: Post Summary. (This will appear on the main page)
summaryImg: `someimage.jpg` (optional)
date: 2020/08/31 17:01
isDraft: true (optional. add this if you don't want to publish a post yet)
tags:
- draft
- helloworld
---
#Markdown Page Content
- this
- is
- *markdown*
Git
Markdown Blog posts for Sapper by joshnuss - https://dev.to/joshnuss/create-a-blog-with-markdown-sapper-50ad
Travis-CI (rename ._travis.yml
to .travis.yml
)
Github Pages / github.io