Skip to content

natri0/natri.fyi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my new personal website

is made of three parts:

  1. the content, written in typst
  2. the builder, a TS script that compiles the content into SVGs + PDFs
  3. the serverless worker, which responds to requests for <page-idx>.html by inserting the correct SVG into the template

building

change the cdnBase in the worker so that it points to wherever you're hosting the dist!

bun build-content -t PATH_TO_TYPST
bun build-worker

typst with typst eval (PR #7362) support is required. i have a darwin-amd64 build so hit me up if you have an intel mac and don't want to compile it yourself.

deploying

  1. build
  2. host the content of dist somewhere
  3. change the variable in the worker so that it points there
  4. build worker again
  5. upload worker/worker.js to cloudflare workers
  6. done!

license

the code (build.mts, template.html, worker.ts) is licensed under MIT. the content (everything in content/) is licensed under CC BY-NC-ND.

Note

the BY-NC-ND is restrictive, but it does not restrict fair use. according to Wikipedia, if we follow the US fair-use law, commentary, criticism, news reporting, research, and scholarship is covered by fair-use.

About

my new personal website, powered by typst.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors