@xandrev/gistblog

1.1.1 • Public • Published

@xandrev/gistblog

This allows you to create a dynamic blog for static providers like GitHub Pages using Gists as a backend.

For an example of a blog using this package, check out https://seisvelas.github.io

Install

npm install --save @xandrev/gistblog

Usage

Add blog posts by creating a Gist whose filename begins with 'blog_'. Then add the Blog component, like so:

import React, { Component } from 'react'

import Blog from '@xandrev/gistblog'

class Example extends Component {
  render() {
    return <Blog user="[Your Gist Username]" />
  }
}

License

MIT © xandrev

Source code: https://github.com/seisvelas/gistblog

Readme

Keywords

none

Package Sidebar

Install

npm i @xandrev/gistblog

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

20.5 kB

Total Files

6

Last publish

Collaborators

  • xandrev