Blog Renovated
A publishing-site redesign focused on editorial navigation and dependable upgrades for returning readers.

I redesigned the blog so technical articles would be easier to browse and returning readers could move between the blog and portfolio without having to relearn the navigation. I also addressed an issue in the static preview where a browser with cached HTML could still request the previous build’s assets.
An editorial filter that matches the navigation
Sanity holds content for several parts of the site. I gave the blog index one shared rule for deciding what belongs in its filters and listing. The helper checks the category and its parent, so a child of an About or Services category stays out of the blog index as well.
const hiddenCategories = new Set(["About", "Services"]);
export function isBlogCategory(category) {
return !!category && !hiddenCategories.has(category.title) && !hiddenCategories.has(category.parent?.title);
}
export function isBlogPost(post) {
return Boolean(post?.slug && !post.categories?.some(category => category && !isBlogCategory(category)));
}Serving assets referenced by cached pages
Next.js assigns hashed names to JS and CSS. The GitHub Pages preview workflow carries forward recent static artifacts and copies only files that are missing in the new export. This gives older cached HTML a chance to resolve its dependencies while the latest HTML continues to request the new build.
previous_runs=$(gh run list --repo "$GITHUB_REPOSITORY" --workflow pages-preview.yml --branch develop --status success --limit 2 --json databaseId --jq '.[].databaseId')
for run_id in $previous_runs; do
old=$(mktemp -d)
if gh run download "$run_id" --repo "$GITHUB_REPOSITORY" --name pages-current-static --dir "$old/static"; then
rsync -a --ignore-existing "$old/static/" frontend/out/_next/static/
elif gh run download "$run_id" --repo "$GITHUB_REPOSITORY" --name github-pages --dir "$old/pages"; then
if [ -f "$old/pages/artifact.tar" ]; then
tar -xf "$old/pages/artifact.tar" -C "$old" ./_next/static
rsync -a --ignore-existing "$old/_next/static/" frontend/out/_next/static/
fiWhat I learned
A redesign has to work for someone revisiting an open tab as well as someone opening the site for the first time. I treated navigation and static asset retention as two parts of that experience.