Introducing Blogkit – A Unified Blog Engine

Blogkit is a unified blog engine. You can reach out on GitHub.

Motivation

Many people blogging on GitHub by using 11ty, Saber, Nextra, and etc. They are all great tools for blogging, with the power of Vercel so we can update our blog by jus…


This content originally appeared on DEV Community and was authored by DEV Community

Blogkit is a unified blog engine. You can reach out on GitHub.

Motivation

Many people blogging on GitHub by using 11ty, Saber, Nextra, and etc. They are all great tools for blogging, with the power of Vercel so we can update our blog by just committing the new markdown file to GitHub.

Sounds nature! But all the tools rely on GitHub ecosystem which means is if we out of our git environment, we can not update our blog.

So I was thinking, “How to blogging on anywhere I want?”. Fortunately, since I notice Sairin - A Blog Engine Based on GitHub Issue ,that is exactly what I want to have.

But I prefer Notion than GitHub Issue, so I made up a new idea based on Sairin, make it extensible.

And now, blogkit - A Unified Blog Engine is here!

Tech Specific

Blogkit has 3 parts: core, request, theme.

  • core: the built-in logic
  • request: tell core how to fetch post list and post
  • theme: the blog looks

With custom request, we can fetch the posts data from any service(Notion, etc.). For example:

// pesudo code
const request = {
  getPostList() {
    const posts = await fetch('/api/getPostList')

    return {
      posts
    }
  },
  getPost(slug) {
    const markdown = await fetch('/api/getPost', {
      query: {
        slug
      }
    })

    return {
      // ...
      id: `my-post`,
      markdown
    }
  }
}

With Next.js Incremental Static Regeneration, our blog will generate static pages once, and update them on demand.

One More

Blogkit is extensible, and we had built-in some useful presets:

Not the end

We will keep adding new features to Blogkit! Let’s build the ecosystem!


This content originally appeared on DEV Community and was authored by DEV Community


Print Share Comment Cite Upload Translate Updates
APA

DEV Community | Sciencx (2022-03-05T15:41:19+00:00) Introducing Blogkit – A Unified Blog Engine. Retrieved from https://www.scien.cx/2022/03/05/introducing-blogkit-a-unified-blog-engine/

MLA
" » Introducing Blogkit – A Unified Blog Engine." DEV Community | Sciencx - Saturday March 5, 2022, https://www.scien.cx/2022/03/05/introducing-blogkit-a-unified-blog-engine/
HARVARD
DEV Community | Sciencx Saturday March 5, 2022 » Introducing Blogkit – A Unified Blog Engine., viewed ,<https://www.scien.cx/2022/03/05/introducing-blogkit-a-unified-blog-engine/>
VANCOUVER
DEV Community | Sciencx - » Introducing Blogkit – A Unified Blog Engine. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/03/05/introducing-blogkit-a-unified-blog-engine/
CHICAGO
" » Introducing Blogkit – A Unified Blog Engine." DEV Community | Sciencx - Accessed . https://www.scien.cx/2022/03/05/introducing-blogkit-a-unified-blog-engine/
IEEE
" » Introducing Blogkit – A Unified Blog Engine." DEV Community | Sciencx [Online]. Available: https://www.scien.cx/2022/03/05/introducing-blogkit-a-unified-blog-engine/. [Accessed: ]
rf:citation
» Introducing Blogkit – A Unified Blog Engine | DEV Community | Sciencx | https://www.scien.cx/2022/03/05/introducing-blogkit-a-unified-blog-engine/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.