Skip to content

Getting started with JAMstack

Posted on:March 7, 2023 at 02:28 AM

Table of contents

Open Table of contents

Introduction

Jamstack

This is my first blog built using Nodejs. Under the hood it uses Astro.

Astro is a javascript or typescript based templating engine and runs on nodejs.

Static Site Generators

In my search for setting up a blog, I came across another tech acronym JAMstack and it introduced me to the next generation of websites called Static Site Generators (SSG).

SSGs are essentially javascript sites that are compiled into static pages; all that means is no database required.

Looking at the options

There are a lot of good SSGs out there are. You can find them on JAMstack.

Here are my thoughts based on my research:

S. No.SSGProsConsRemarks
1Hugo CMS- Lightweight
- Many themes
- Strong Community
- themes are git sub-modulesIts not hugo its me.
2Jekyll- Proper templating engine IMHO
- Many themes
- Strong Community
- Many theme sitesBetter curation of Jekyll themes
3Gatsby JS- Very flexible
- Many themes
- Strong Community
- Need JS knowledgePlan for v2 blog is to use gatsby
4Astro- Meta framework
- Few themes
- New entry
- Few integrations
Its not easy to customise

Why Astro?

Astro happened to be the new kid on the block and it hit 2.0.

They have official themes on their website and the documentation was good.

Obviously, there is a learning curve and the number of integrations (can I say plugins) are growing.

From my experience as a Java developer, I know that I did not have the time to create a theme from scratch.

However, I found a few blog themes that had all the main functionality I needed:

  1. Dark and Light mode
  2. Search
  3. Tags
  4. etc..

So I picked one and here we are.

Closing thoughts

I want a theme that is my own.

I did spend some time on Gatsby JS so I am thinking my v2 may be gatsby based.

But that’s for another post.