From 317efd17e2d12c86a9c6b8168768574717443e41 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sat, 10 May 2025 20:32:04 -0700 Subject: [PATCH] WIP: layouts --- README.md | 2 ++ index.md | 31 +++++++++---------------------- site.moon | 3 ++- templates/index.html | 4 ++++ templates/wares.html | 34 ++++++++++++++++++++++++++++++++++ 5 files changed, 51 insertions(+), 23 deletions(-) create mode 100644 templates/wares.html diff --git a/README.md b/README.md index 27f5242..fbd62a1 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ ## todo +current problem: why does sitegen wrap every thing in

tags? + * treesitter highlighting for moonscript * penlight library * sitegen plugins diff --git a/index.md b/index.md index dd6f065..fdf449e 100644 --- a/index.md +++ b/index.md @@ -2,33 +2,20 @@ date: "Thu May 08 2025 19:41:30.000000000" } -## Wares +## where is this?? -

+$(

asdfasdf

) -### [BTroops]($root/apps/btroops/) [View Source Code]($root/git/btroops/) +$markdown{[[ +- this is markdown +- also, sparta +]]} -A virtual implementation of FASA's 1989 wargame, Battletroops, for the browser. -Suitable for single-player solo play or two-player hotseat. +$if{"val"}[[

just some straight up text

]] -Runs entirely on the client after the initial download from the server. Built -with HTML5, SVG and JavaScript. Uses Node.js, Esbuild and Docker for building -and running dev/test servers. +$render{"templates/wares"} -
- -
- -### [Pandoc](https://hex.pm/packages/pandoc) [View Source Code]($root/git/pandoc/) - -A Hex package for installing and invoking [Pandoc](https://pandoc.org/) ("a -universal document converter"), fashioned after Phoenix's -[Esbuild](https://hex.pm/packages/esbuild") and -[Tailwind](https://hex.pm/packages/tailwind") packages. Also included is a file -system watcher, so that converted documents are updated as soon as content -changes are saved. - -
+$render{"moon-test"} ## Posts diff --git a/site.moon b/site.moon index d6a25a9..ebb1e39 100644 --- a/site.moon +++ b/site.moon @@ -25,9 +25,10 @@ site.config.out_dir = "html/" css = tools.system_command "cat < %s > %s", "css" sitegen.create => - @title = "Hello World" + @title = "WebDevCat.me ยท Catalin Mititiuc" @app_name = "stasis" @version = "0.2.12" + @val = "yes" add "index.md" add path, target: out, template: "blog" for path, out in pairs posts "docs" diff --git a/templates/index.html b/templates/index.html index 8021486..534b3d2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,9 @@ $wrap{"root"} +

spacing guild

+ +$([[

hi

]]) +

Hi, I'm Catalin Mititiuc

diff --git a/templates/wares.html b/templates/wares.html new file mode 100644 index 0000000..da20b02 --- /dev/null +++ b/templates/wares.html @@ -0,0 +1,34 @@ +

Wares

+ +
+

+ BTroops + + View Source Code + +

+ +

A virtual implementation of FASA's 1989 wargame, Battletroops, for + the browser. Suitable for single-player solo play or two-player hotseat.

+

Runs entirely on the client after the initial download from the + server. Built with HTML5, SVG and JavaScript. Uses Node.js, Esbuild and + Docker for building and running dev/test servers.

+
+ +
+

+ Pandoc + + View Source Code + +

+ +

+ A Hex package for installing and invoking Pandoc + ("a universal document converter"), fashioned after Phoenix's + Esbuild + and Tailwind + packages. Also included is a file system watcher, so that converted + documents are updated as soon as content changes are saved. +

+