- Install dependencies:
npm install - Start the server:
npm start - Open http://localhost:3000 in your browser.
-
Create a Markdown file in the
posts/folder. Use a slug for the filename (e.g.posts/my-first-post.md). -
Add an entry to
posts.jsonwith the post metadata:{ "title": "My First Post", "date": "2025-02-16", "file": "my-first-post" }title: Display title on the index and post pagedate: Publication date (YYYY-MM-DD)file: The slug—must match the filename without.md
-
The post will appear on the homepage and at
post.html#my-first-post.
Order in posts.json determines listing order (newest first by default).
Pushes to main automatically deploy to https://kperpignant.github.io/devlog/.
One-time setup: Add a PAGES_DEPLOY_TOKEN secret to this repo:
- Create a Personal Access Token with
reposcope. - In this repo: Settings → Secrets and variables → Actions → New repository secret.
- Name:
PAGES_DEPLOY_TOKEN, Value: your token.
The workflow copies the blog into the devlog/ folder of kperpignant.github.io.