Skip to content

Instantly share code, notes, and snippets.

@MonteLogic
Last active October 1, 2024 20:49
Show Gist options
  • Save MonteLogic/13c02295d79aa31bb5d9eeb8035a3f1c to your computer and use it in GitHub Desktop.
Save MonteLogic/13c02295d79aa31bb5d9eeb8035a3f1c to your computer and use it in GitHub Desktop.
Setting up a static Next.js site to replace our WordPress site.

Start:

Sep 28 2024 14:27:06 CDT

I'd rather do any system which is integrated with gh gists because I think GistPad for VSCode is great and is my essential note writing tool.

I think on the top of the file we can write, 'use blog'

Then this will be a blog site.

Related articles: https://news.ycombinator.com/item?id=21424607

https://docs.github.com/en/rest/gists/gists?apiVersion=2022-11-28

A lookup table could be good for looking up some of the posts.

Start:

Sun Sep 29 2024 12:17:51 CDT

Still having issues with redirect to my site so we need to migrate the blog to Vercel.

So lets go with the Gist option with JSON files for Markdown.

I would like to write some sort of script which is going to automate the process of turning all of the WordPress posts into the Gist format we are looking for.

The Import Process

Maybe we can use a bulk import and then just download all this post and then import it on to a CMS and it's going to be the initial one and then that'll be like a freezing that you could use like apis with and then you will still use you just pad and you would use both

Generous Free tier for headless CMS

No Modern Headless CMS

Looking at Sanity.io, apparently there's a 'trial' period, so lets get rid of that.

All of these Headless CMS's are saying they're free but it's cap af.

So I think you should have all of your markdown files

I wonder if you can

I think I may go the Turso route and just store the Markdown files as text files but then you have to putz around with Turso and db and that's a lot of work for simple markdown files.

So I think I may make a repository of all the older WordPress posts and then add it on as a submodule to the 'static'( or ISR ) GitHub repo.

So adding GH Submodules

So we made a repo now we just have to add all of the posts and ideally, they will be all Markdown format.

Adding articles to submodule

Would like to make it Markdown and not conventional WordPress schema.

Looking at this repo:

https://github.com/lonekorean/wordpress-export-to-markdown

Okay that tool ^^^ is dope! Now I'm wondering what other dope CLIs I can use to improve my website.

Generating a Static site which will show the Markdown content.

This is the codebase I'm familiar with: https://github.com/vercel/next-app-router-playground/tree/main

In there, there are some ISR and static generation features, lets dig them up and use them.

isr, ssr, ssg

We are focusing on ISR, here.

Aside: What would be dope is the was a Desktop app which popped up with a job anytime a job posting which fits my skills and pay are posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment