npilk // ChatGPT is my static site generator

npilk // ChatGPT is my static site generator:

In the end, I decided to cobble something together with Jinja. I wrote a base_common.html for my header and footer, a basic template for posts, and a custom script to generate the full site from the post templates. This wasn’t quite as automated as I hoped, but it was simple, and left me with plenty of control.

Modern problems require modern solutions

After tediously copy-pasting the first couple of posts into my template, I had a thought that’s becoming more and more common. Why not just ask ChatGPT to do it?

I wrote a simple prompt:

I need to put my blog post into my standard template. I’ll paste the template from an old post and then the new post content. Can you update it into the correct format?

Here’s the template from a prior post: {pasted template}

And here’s the new post: {pasted new post}

[Nice!]

Leave a comment