bradleytaunt / gists-blog

Use your Github gists as blog posts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gist blog

A simple static rendered blog site genrator, based on Nuxt.js that fecth posts data from your Github gists.

πŸŽ‰ Getting Started

Deploy to Netlify

Demo : Mikamboo's Gists Blog

Otherwise, you can follow these steps!

  1. πŸ‘―β€β™‚οΈ Clone the repository locally and cd into the directory.
  2. πŸ“¦ Install dependencies.
  3. πŸ— Run the project for local dev. This will start a hot-reloading server at localhost:3000.
  4. 🌌 Build the app for server-side rendered deployment. See more about Universal SSR in the Nuxt.js docs.
  5. ⚑️ Generate a fully pre-rendered static site. See more in the docs.

How it works ?

  1. The site genertor require a GISTS_USER environnement variable to fetch user posts from Github Gists.
  2. All gists containing a README.md + gistsblog.json will be considered as blog posts
  • README.md File contains article markdown
  • gistsblog.json is just a filter to avoid to take all Gists

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ GISTS_USER=your-user-name yarn run dev

# build for production and launch server
$ GISTS_USER=your-user-name yarn run generate
$ yarn start

# generate static blog
$ GISTS_USER=your-user-name yarn run generate

Inspired/Referred

For detailed explanation on how things work, checkout :

TODO

About

Use your Github gists as blog posts


Languages

Language:Vue 63.2%Language:JavaScript 36.8%