diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..490d928 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,2 @@ +[*.luau] +max_line_length = 80 diff --git a/.luaurc b/.luaurc index bd87ff3..c678188 100644 --- a/.luaurc +++ b/.luaurc @@ -5,6 +5,7 @@ "globals": [ "maivi", "h", - "this" + "this", + "Iter" ] } diff --git a/data/about.md b/data/about.tkt similarity index 73% rename from data/about.md rename to data/about.tkt index f84f39e..a657d99 100644 --- a/data/about.md +++ b/data/about.tkt @@ -2,7 +2,7 @@ title = "about me :)" +++ -###### ✨ i'm passionate about: +~ ✨ i'm passionate about: -###### 🌱 in my projects, i blend these passions together: +~ 🌱 in my projects, i blend these passions together: -> _"Among the roses, beneath the twilight."_ 🌙🌿 +
+ "Among the roses, beneath the twilight." 🌙🌿 +
-## how this site was build +== how this site was build this site is build using the following tools: -- zola, for static site generation +- [maivi], for html templating in luau - nix, for reproducible builds everywhere you can read more about it [here](/blog/building-this-site). + +[maivi]: https://codeberg.org/comfysage/site diff --git a/data/blog/building-this-site.md b/data/blog/building-this-site.tkt similarity index 73% rename from data/blog/building-this-site.md rename to data/blog/building-this-site.tkt index 26b4ddc..58b26f7 100644 --- a/data/blog/building-this-site.md +++ b/data/blog/building-this-site.tkt @@ -1,12 +1,12 @@ +++ -title = "building this site" +title = "[outdated] building this site" date = 2025-01-22 modified = 2026-01-07 desc = "my tiny adventure in static site generation" tags = site, +++ -## static site generation += static site generation while looking for a static site generator for my site i tried a few interesting tools, like hugo and astro. i even tried building my own ssg (which failed @@ -16,13 +16,13 @@ written in rust. zola uses tera templates to build sites with minimal effort. zola separates content from templates. where markdown files can specify which templates to use. -### templates +== templates here is my blog page. it specifies a template to use for the section. in this template i can use zola's section variables to create a dynamic posts page (which i'll get into in a bit). -```markdown +~~~ markdown +++ title = "blog" description = "questionable ideas put to paper" @@ -30,7 +30,7 @@ sort_by = "date" template = "pages/blog.html" page_template = "pages/post.html" +++ -``` +~~~ the blog page also specifies a `page_template`. this is the template that will be used for all child pages (my blogposts). @@ -38,7 +38,7 @@ be used for all child pages (my blogposts). in my `pages/blog.html` template i can use zola's section variables to iterate over all my blogposts and generate a list at build time. -```tera +~~~ tera {% block content %} {{ section.content | safe }} {% endblock content %} -``` +~~~ -## build and deploy += build and deploy to ease building and deploying the site i use nix to setup my tools and build. because the site is static i simply can use github pages to deploy. @@ -57,7 +57,7 @@ because the site is static i simply can use github pages to deploy. the nix builder simply takes zola as a buildinput and runs the build. i then copy the static content to the `$out` directory. -```nix +~~~ nix stdenvNoCC.mkDerivation { src = ./.; @@ -80,26 +80,23 @@ stdenvNoCC.mkDerivation { runHook postInstall ''; } -``` +~~~ deployment is done using a single github action you can find [here](https://codeberg.org/comfysage/site/src/commit/0b94d7338c1d7c50c09635b4d20fbeab552d58fd/.github/workflows/deploy.yml). - +< (note) ~ update: codeberg ci +< deployment is now done with codeberg ci using woodpecker using the config +< you can find [here][codeberg ci] -## resources +[codeberg ci]: https://codeberg.org/comfysage/site/src/commit/0b94d7338c1d7c50c09635b4d20fbeab552d58fd/.woodpecker/deploy.yaml + += resources