Giter Site home page Giter Site logo

philbassham.com's Introduction

Personal portfolio site

  • Category pages
    • if there is no category for a post, it goes into the /posts/ url
    • otherwise, there is an index for a category. Example /projects
  • Tags
    • used to tag context of a project. personal, company, etc

GitHub Projects as CMS for Next.js site

Uses Github Projects (v2) as CMS.

Features:

  • Issue = Page or Post
  • Category Pages (using custom field in project)
  • Tag Pages using github Labels
  • MDX Components
  • public editing option

Instructions

Github Issues Configuration

  1. Set publish tag (only Issues with this tag will be published)
  2. (Optional) Set up Issue Templates (For Post Templates, etc)

Github Project Configuration

  1. Create a Project
  2. Enter the Project Number ___
  3. Create Custom fields (fields with no space will be used as is, if the name has a space it will turn to camelCase)
    1. Category
    2. Cover Image
    3. Publish Date

Cloudflare Key-Value Store Configuration

Need to use the KV store of cloudflare (or anywhere else) to convert between slugs and issue IDs because the Github api only allows fetching issues by ID.

Configure Vercel Environment Variables

  1. GITHUB_TOKEN
  2. CLOUDFLARE_TOKEN

Finally, configure this project

Example:

{
  publish_tag:'',
  org_project:false,
  username:"", // use Organization username if Organization
  project_num: 1,
}

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.