Commit d4ae156

HPCesia <me@hpcesia.com>
2026-09-16 04:51:39
Format repo
1 parent fae778e
Changed files (4)
src
contents
src/contents/_lib/components/image.typ
@@ -44,7 +44,12 @@
     type(value) == dictionary
   ) {
     (
-      "{" + value.pairs().map(pair => repr(pair.first()) + ": " + js-value(pair.last())).join(", ") + "}"
+      "{"
+        + value
+          .pairs()
+          .map(pair => repr(pair.first()) + ": " + js-value(pair.last()))
+          .join(", ")
+        + "}"
     )
   } else {
     panic("kp.img: unsupported astro option " + repr(value))
src/contents/_lib/tests/slugger.typ
@@ -14,7 +14,13 @@
       assert.eq(
         output,
         expect,
-        message: "Test \"" + name + "\" failed: expected \"" + expect + "\", got \"" + output + "\"",
+        message: "Test \""
+          + name
+          + "\" failed: expected \""
+          + expect
+          + "\", got \""
+          + output
+          + "\"",
       )
     })
 }
src/contents/_lib/lib.typ
@@ -26,7 +26,9 @@
   show: raw-template
 
   context {
-    let frontmatter = query(<frontmatter>).first(default: (value: (title: "", date: auto))).value
+    let frontmatter = query(<frontmatter>)
+      .first(default: (value: (title: "", date: auto)))
+      .value
     set document(
       title: frontmatter.title,
       date: frontmatter.date,
src/contents/posts/typst-syntax.typ
@@ -104,12 +104,21 @@ tables in #link("https://typst.app/docs/reference/model/table/")[Typst Reference
   table(
     columns: 4,
     table.header([Framework], [Language], [License], [Description]),
-    [Astro], [TypeScript], [MIT], [The web framework for content-driven websites.],
+    [Astro],
+    [TypeScript],
+    [MIT],
+    [The web framework for content-driven websites.],
 
     [Eleventy], [JavaScript], [MIT], [A simpler site generator.],
-    [Hugo], [Go], [Apache-2.0], [The world’s fastest framework for building websites.],
+    [Hugo],
+    [Go],
+    [Apache-2.0],
+    [The world’s fastest framework for building websites.],
 
-    [Zola], [Rust], [MIT / EUPL-1.2], [A static site generator in a single binary.],
+    [Zola],
+    [Rust],
+    [MIT / EUPL-1.2],
+    [A static site generator in a single binary.],
 
     table.footer([Test1], [Test2], [Test3], [Test4]),
   ),
@@ -158,7 +167,11 @@ Pass a `path` value or a root-absolute string to ```typ #kp.img()``` and Astro's
 ```jsx <Image />``` component optimizes the image.
 
 #figure(
-  kp.img(path("../avatar.png"), alt: "HPCesia, author of Kerplunk's avatar", width: 30%),
+  kp.img(
+    path("../avatar.png"),
+    alt: "HPCesia, author of Kerplunk's avatar",
+    width: 30%,
+  ),
   caption: [An image optimized by Astro.],
 )
 
@@ -168,7 +181,11 @@ For web image, use ```typ #html.img()``` instead.
 Images that can't be imported as a file are extracted to `/_typst/` at build time.
 
 #figure(
-  image(read("../avatar.png", encoding: none), alt: "HPCesia, author of Kerplunk's avatar", width: 30%),
+  image(
+    read("../avatar.png", encoding: none),
+    alt: "HPCesia, author of Kerplunk's avatar",
+    width: 30%,
+  ),
   caption: [An image built from bytes.],
 )