Commit Graph

19 Commits

Author SHA1 Message Date
Hoang Nguyen d631395b6e
Enable experimental flake support in CI 2024-03-16 00:00:00 +07:00
Hoang Nguyen 207e09fb51
Update dependencies
Use nix in CI.
2024-03-16 00:00:00 +07:00
Hoang Nguyen f1768b14e1
Delete go-humanize inside go.mod by accident
Forgot to run `templ generate` before `go mod tidy`, as the templ
template is the only file using this Go module.
2024-01-28 00:00:00 +07:00
Hoang Nguyen 6d07ebe2e5
Update dependencies 2024-01-28 00:00:00 +07:00
Hoang Nguyen cb9dd8c26d
Add more Content-Security-Policy values
Can be checked on https://csp-evaluator.withgoogle.com/
2023-12-29 00:00:00 +07:00
Hoang Nguyen a015e29ea8
Update dependencies
Also add a stupid script to update external font and style sources.
2023-12-23 00:00:00 +07:00
Hoang Nguyen 0556b2592c
Separate minify task
This is slower, but ensures we have accurate file size on the UI.
2023-11-26 00:00:00 +07:00
Hoang Nguyen f77dd38704
Bloat things up
* Use `minify` library instead of the CLI
* Add file size on the right of each entry
* Render clickable links for the heading breadcrumb
* Pretty logging with charmlog
* Use `echo` framework for the preview (why? just for fun and the logger middleware)
2023-11-25 00:00:00 +07:00
Hoang Nguyen f3bb7cb7fc
[ci skip] fix(go): use absolute path for the directory input 2023-11-20 00:00:00 +07:00
Hoang Nguyen f493874e4b
fix: trim root directory prefix 2023-11-20 00:00:00 +07:00
Hoang Nguyen 2ace4b61bf
Use templ instead of Go template for HTML sources
Also add Nix.
2023-11-20 00:00:00 +07:00
Hoang Nguyen 1397196e4e
[ci skip] Reuse the HTML template for the homepage
and switch the code to parse flags instead of raw os.Args.
2023-07-16 00:00:00 +07:00
Hoang Nguyen e63655c892
Add integrity for loaded <link> resources 2023-07-13 00:00:00 +07:00
Hoang Nguyen 28a6edcaf4
[ci skip] Small nit-picking 2023-07-12 00:00:00 +07:00
Hoang Nguyen 51cf764861
Some HTML tweaks on the home page 2023-07-12 00:00:00 +07:00
Hoang Nguyen 1bc2fa4484
makefile: add serve target to quickly preview changes 2023-07-11 00:00:00 +07:00
Hoang Nguyen 6c245c45b7
Actually make the sarcasm work 2023-07-11 00:00:00 +07:00
Hoang Nguyen d038546b7c
css/self: apply the @media rule correctly 2023-07-11 00:00:00 +07:00
Hoang Nguyen 9f2f494f3c
Init 2023-07-11 00:00:00 +07:00