GithubHelp home page GithubHelp logo

aveek-saha / gistblog Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 59 KB

Turn your Gists into blog posts.

Home Page: https://gistblog.vercel.app

License: MIT License

JavaScript 23.85% HTML 76.15%
gist blog markdown blog-post

gistblog's Introduction

Gist Blog ๐Ÿ“ƒ

Turn your Gists into blog posts.

Gist Blog is a platform that transforms your GitHub Gists into blog posts. This project was heavily inspired by Gist.io, but Gist Blog comes with a few extra perks.

Why Gist Blog?

Gist Blog is for posts that don't belong on your usual blog, maybe because it doesn't fit the theme or maybe because you want to reach a different audience than the people that usually read your blog.

Usage

Create a blog post

  1. Create a GitHub Gist in Markdown. Make sure the file name ends with _post.md and has a title parameter in the metadata*.
  2. Replace the URL:
    gist.github.com/{username}/{gist-id} with
    gistblog.vercel.app/post/{gist-id}
  3. Your blog post is ready!

Blog:

List all posts on your profile

  1. Create multiple posts using the instructions above
  2. Go to: gistblog.vercel.app/{username}
  3. Your blog is ready!

*Metadata

You can add metadata to your post in the form of yaml at the top of your markdown file. The syntax for metadata is as follows

---
title: A very interesting and unique blog title
description: An even more interesting and unique description that provides more info about the post
---

For posts to show up in your blog page they MUST have the title field and a file name ending with metadata.

Features

  • Turn any GitHub Gist into a blog post.
  • Have a place to list all your gist blog posts
  • Switch between dark/light mode
  • Render markdown into HTML. Supports markdown tables and more
  • Add a title and description to you blog using YAML metadata

Development

To run locally for development, fork the project, install the Vercel CLI

npm i -g vercel
cd GistBlog
vercel dev

Then go to localhost:3000 to see the site up and running

Note:

For listing all posts on your profile, the content of each post has to be retreived. This is why only 5 posts are shown per page and even then the page might take 3~4 seconds to load.

gistblog's People

Contributors

aveek-saha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.