commit e4fa25a

dani  ·  2026-05-10 19:33:57 +0000 UTC
parent 5c9b255
ssg: rename media related stuff to assets
7 files changed,  +34, -3
R media/bigpoo.png => assets/bigpoo.png
+0, -0
+1, -1
1@@ -65,7 +65,7 @@ func mainAction(ctx context.Context, c *cli.Command) error {
2 	if err := os.MkdirAll(outputDir, 0o700); os.IsNotExist(err) {
3 		return err
4 	}
5-    if err := ssg.FromMedia("./media", outputDir); err != nil {
6+    if err := ssg.FromAssets("./assets", outputDir); err != nil {
7         return err
8     }
9 	markdown := goldmark.New(
+0, -0
+19, -0
 1@@ -0,0 +1,19 @@
 2+<!DOCTYPE html>
 3+<html lang="en">
 4+  <head>
 5+    <meta charset="UTF-8">
 6+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 7+    <title>the dani museum</title>
 8+    <meta name="description" content="This is where you can find information about the Dani Village.">
 9+  </head>
10+  <body>
11+    <main>
12+      <h1 id="hi-hiii-welcome-to-the-dani-museum-heavily-wip-3">Hi hiii welcome to the dani museum!! (HEAVILY W.I.P) :3</h1>
13+<p>Check this shit out this peaks ---&gt; <a href="https://www.youtube.com/watch?v=u87oNgyIPvY">kid named shit</a>
14+<em>(TUFF!!)</em></p>
15+<p><img src="bigpoo.png" alt="bigpoo"></p>
16+<p>(<em>This is bigpoo, say hi to bigpoo 🥺)</em></p>
17+
18+    </main>
19+  </body>
20+<html>
+0, -0
+12, -0
 1@@ -0,0 +1,12 @@
 2+----
 3+title: the dani museum
 4+----
 5+
 6+# Hi hiii welcome to the dani museum!! (HEAVILY W.I.P) :3
 7+
 8+Check this shit out this peaks ---> [kid named shit](https://www.youtube.com/watch?v=u87oNgyIPvY)
 9+*(TUFF!!)*
10+
11+![bigpoo](bigpoo.png) 
12+
13+(*This is bigpoo, say hi to bigpoo 🥺)*
R pkg/ssg/media.go => pkg/ssg/assets.go
+2, -2
 1@@ -9,8 +9,8 @@ import (
 2 )
 3 
 4 // i couldn't come up with a better name for the function without it being too verbose but bwaaa who cares ig ;w;
 5-func FromMedia(mediaDir string, outputDir string) error {
 6-    err := filepath.WalkDir(mediaDir, func(path string, d fs.DirEntry, err error) error {
 7+func FromAssets(assetsDir string, outputDir string) error {
 8+    err := filepath.WalkDir(assetsDir, func(path string, d fs.DirEntry, err error) error {
 9         if err != nil {
10             slog.Error("got err while reading path", "path", path, "err", err) // those who error :skull:
11             return filepath.SkipDir