Dark cover with the S logo and the address sanskarIN.github.io/blog, the words "Hello, world. The blog is open, and you can write for it.", and three steps: GitHub issue, GitHub Actions, /blog/.

Welcome to the blog! This first post is a short tour: what the blog is for, how you can write here too, and how a post gets from GitHub to this page.

What to expect

I'm Sanskar, a software developer building software, developer tools, and digital products in the open. This is where I'll write about the things I work with and learn along the way (Rust and C++, Android, the web, game development, and AI and machine learning) and share updates on what I'm building.

You can write here too

This blog isn't only mine. Anyone with a GitHub account can write a post:

  1. Open the blog and select Write a post.
  2. Fill in the form on GitHub: a title, your text in Markdown, and any images you like. PNG, JPEG, GIF, and WebP images up to 10 MB each all work.
  3. Submit it. I review posts from visitors before they go live, and a comment on your issue tells you when yours is published.

Every post shows when it was published and, once it changes, when it was last updated. It also shows who wrote it, how long it takes to read, and its tags.

How it works

There's no server behind this site. Each post starts as a GitHub issue, and a GitHub Actions workflow runs whenever a post's issue changes:

on:
  issues:
    types: [opened, edited, deleted, labeled, unlabeled]

The workflow checks the post, copies its images to the site with location and camera details removed, turns the Markdown into HTML with only safe formatting, and saves the post in the website's repository. GitHub Pages then rebuilds the site with Jekyll. There are no analytics, trackers, or cookies.

Thanks for reading! If you'd like to write the next post, the form is one click away.