commit 9086b20
0uppy
·
2026-05-10 18:20:19 +0000 UTC
parent 9188941
ssg: call FromMedia in main
1 files changed,
+4,
-1
+4,
-1
1@@ -65,6 +65,9 @@ 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+ return err
7+ }
8 markdown := goldmark.New(
9 goldmark.WithExtensions(meta.Meta),
10 goldmark.WithParserOptions(parser.WithAutoHeadingID()),
11@@ -89,4 +92,4 @@ func main() {
12 slog.Error("got err while generating pages", "err", err)
13 os.Exit(1)
14 }
15-}
16+}