Spriggan

Where technology meets nature - cybersecurity insights, code, and forest adventures

github pages revamp plan

12 Apr 2025 · 4 min · webdev · nextjs

GitHub Pages Migration Plan - COMPLETED ✅

Overview

This document outlines the steps that were taken to migrate the cyberpunk-blog project to the existing GitHub Pages repository (jaidenamari.github.io) while preserving both the new blog features and existing content/workflow.

I wanted a fresh design using some of the new things I've been learning using next.js and radix ui. I'm still not convinced I like next.js, for anything complex, but it seems to be suitable for quickly standing up new designs.

I don't have any projects on my git that I can currently share with the public, but I will eventually get on documenting some of my coding projects as they come to fruition here. I'll improve the aesthetic over time. I was curious about experimenting with the three.js library to add some 3d elements, but my first attempts are very shy of what I was hoping for, so I just added some basic animation for now.

Future Improvements

Current State

Migration Goals

  1. Preserve existing blog posts and content ✅
  2. Maintain Obsidian workflow for content creation ✅
  3. Update the aesthetics with the new cyberpunk forest design ✅
  4. Ensure a smooth transition without data loss ✅

Step-by-Step Migration Plan

Phase 1: Repository Setup ✅

Phase 2: Content Integration ✅

Phase 3: Next.js Configuration for GitHub Pages ✅

Phase 4: Obsidian Workflow Integration ✅

Phase 5: Integration Testing ✅

Phase 6: Deployment ✅

Phase 7: Post-Deployment ✅

Technical Implementation Details

Content System Modifications

We modified lib/blog.ts to:

  1. Read markdown files from the file system ✅
  2. Parse frontmatter correctly ✅
  3. Support the existing YAML frontmatter format from Hugo ✅

Required Dependencies

GitHub Pages Configuration

GitHub Pages with Next.js requires:

  1. Static HTML export ✅
  2. A .nojekyll file to prevent Jekyll processing ✅
  3. Proper asset path configuration ✅

Rollback Plan

In case of critical issues:

  1. Revert to the previous commit in the GitHub Pages repo
  2. Re-deploy the previous version
  3. Address issues in the cyberpunk-blog project before attempting migration again

Conclusion

The migration from Hugo to Next.js was successfully completed. The new site maintains compatibility with the Obsidian workflow while providing a modern cyberpunk aesthetic. All existing content has been preserved, and the site is now deployed to GitHub Pages using GitHub Actions for automated deployment.

operations

  1. Artifact Based Docker Deployments

    Stop building on servers.

  2. How to Update Subnet Routes in Tailscale

    When working with private VPC resources (like an AWS OpenSearch endpoint) you may find that devices on your Tailnet can’t reach them even though they’re connected to the…

  3. Tailscale Pulumi Implementation Guide

    You want to automate the deployment of VMs that will automatically join a Tailscale network on first boot. No SSH keys to distribute, no extra exposed ports, no manual…

building

  1. Setting Up Dockerized PostgreSQL with Multi-Tenant Support and Automated Migrations

    Imagine creating a single application that serves dozens, hundreds, or even thousands of different clients, each with their own private data that remains completely…

  2. github pages revamp plan

    This document outlines the steps that were taken to migrate the cyberpunk-blog project to the existing GitHub Pages repository (jaidenamari.github.io) while preserving…

  3. blog post about setting up blogs

    I created a new github account, mainly because I wanted to rebrand my online presence and to have a clear trackable start. While my old git has 1000's of commits, it's…

the woods

  1. in the woods

    Spent the evening in the mountain valley. The stream ran by swift and succulent as always in the spring. We have been building a lot in a short time there. I'm ready to…

  2. hello moon

    Trying something new. Documenting what I do.

projects

  1. Mikro ORM Multi-Tenant

    A multi-tenant application framework for building scalable and secure applications.

  2. Artifact Container Deployment Pipeline

    A immutable artifact container deployment pipeline using GitHub Actions.

  3. motes

    Pictures drawn in dots, by code: a still grid of thresholds, seeded noise, shapes, and a plate that renders to canvas, PNG and SVG. Parts of this site are drawn with it.

about

  1. Spriggan

    Security · Full-Stack · API · DevOps · Cyber · Garden · Cook · Hike · Forage · Explore

  2. Jaiden Garrett

    Trained in cybersecurity, fluent in production systems. I build and harden distributed web applications from database to deploy, step willingly into complex living…