Skip to content

feat: migrate site to inkssg#2

Open
lucasnevespereira wants to merge 1 commit into
mainfrom
feat/migrate-to-inkssg
Open

feat: migrate site to inkssg#2
lucasnevespereira wants to merge 1 commit into
mainfrom
feat/migrate-to-inkssg

Conversation

@lucasnevespereira

Copy link
Copy Markdown
Owner

Summary

Replaces the hand-rolled main.go (210 lines + custom config + 3 themes + minify) with the inkssg library. The site now uses inkssg's embedded minimal theme — same look, less surface area.

Changes

  • main.go — was 210 lines, now 12. Just calls inkssg.Build(".").
  • ink.yaml — replaces config.yaml. Same fields, inkssg names (pictureavatar, themedefault_theme).
  • pages/index/content.md — moved from src/content/index.md with frontmatter added.
  • Makefilemake site runs go run main.go, then carries over snowz.html + snowz/ into public/.
  • assets/img/ — avatars moved here so inkssg copies them through.
  • go.mod — only requires github.com/snowztech/inkssg. Dropped tdewolff/minify, goldmark, yaml.v2 (all transitive now).
  • Deleted: src/, config.yaml, root index.html, assets/css/, assets/js/.

Snowz handling (stop-gap)

snowz.html and snowz/ are still custom HTML. Makefile copies them into public/ after the inkssg build. Plan is to migrate snowz to its own repo using inkssg's new bio theme later (see snowztech/inkssg#3).

Deployment — needs decision

public/ is currently untracked. Two options:

A) Commit public/, point Pages at /public. Simpler, but commits build output.
B) GH Actions deploy workflow. Cleaner — never commit build artifacts. Requires a workflow + flipping Pages source to "GitHub Actions".

This PR doesn't pick yet. Both are easy to add as a follow-up commit.

Test plan

  • make site builds locally without error
  • Output: public/index.html + public/snowz.html + assets + theme files
  • Visual: render matches the current live site
  • Pick A or B, configure GH Pages, verify lucasnp.dev still serves correctly after merge
  • lucasnp.dev/snowz still loads (carry-over copy)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant