villbass / twos.dev

a portfolio, personal website, and static site generator

Home Page:https://twos.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twos.dev

This is the source code for my personal website. I post thoughts, hobbies, and other random things here.

Architecture

twos.dev is a low-tech website. It does not require JavaScript and it is composed entirely of static files served by GitHub Pages.

These static files are built by a bespoke static website generator created for twos.dev called Winter, which is written in Go and embedded in this repository at winter/. See more about Winter below.

First run

Dependencies

  • Go 1.18+

Starting a dev server

go install
go install github.com/mitranim/gow@latest
make serve

Files will be watched for changes. Changes to documents or graphics will automatically trigger the right transformations. Changes to the generator itself will trigger a program recompilation and restart. In both cases, a WebSocket connection on the local page will listen for the change and trigger a refresh automatically.

Winter

Go Reference

Winter is the bespoke static website generator that powers twos.dev. It can be used to power your static website as well, as a CLI or Go library. See winter/README.md for details.

About

a portfolio, personal website, and static site generator

https://twos.dev

License:MIT License


Languages

Language:Go 71.1%Language:HTML 20.0%Language:CSS 8.6%Language:Makefile 0.3%