WIP: layouts

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-16 20:18:04 -07:00
parent efb4943818
commit 62ba454b75
5 changed files with 51 additions and 23 deletions

View File

@ -53,6 +53,8 @@
## todo ## todo
current problem: why does sitegen wrap every thing in <p> tags?
* treesitter highlighting for moonscript * treesitter highlighting for moonscript
* penlight library * penlight library
* sitegen plugins * sitegen plugins

View File

@ -2,33 +2,20 @@
date: "Thu May 08 2025 19:41:30.000000000" date: "Thu May 08 2025 19:41:30.000000000"
} }
## Wares ## where is this??
<section> $(<h1>asdfasdf</h1>)
### [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. $if{"val"}[[<h1>just some straight up text</h1>]]
Suitable for single-player solo play or two-player hotseat.
Runs entirely on the client after the initial download from the server. Built $render{"templates/wares"}
with HTML5, SVG and JavaScript. Uses Node.js, Esbuild and Docker for building
and running dev/test servers.
</section> $render{"moon-test"}
<section>
### [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.
</section>
## Posts ## Posts

View File

@ -25,9 +25,10 @@ site.config.out_dir = "html/"
css = tools.system_command "cat < %s > %s", "css" css = tools.system_command "cat < %s > %s", "css"
sitegen.create => sitegen.create =>
@title = "Hello World" @title = "WebDevCat.me · Catalin Mititiuc"
@app_name = "stasis" @app_name = "stasis"
@version = "0.2.12" @version = "0.2.12"
@val = "yes"
add "index.md" add "index.md"
add path, target: out, template: "blog" for path, out in pairs posts "docs" add path, target: out, template: "blog" for path, out in pairs posts "docs"

View File

@ -1,5 +1,9 @@
$wrap{"root"} $wrap{"root"}
<p>spacing guild</p>
$([[<h1>hi</h1>]])
<section> <section>
<h2>Hi, I'm Catalin Mititiuc</h2> <h2>Hi, I'm Catalin Mititiuc</h2>
<p> <p>

34
templates/wares.html Normal file
View File

@ -0,0 +1,34 @@
<h2>Wares</h2>
<section>
<h3>
<a href="/apps/btroops/">BTroops</a>
<a class="app-source-code-link" href="/git/btroops/">
View Source Code
</a>
</h3>
<p>A virtual implementation of FASA's 1989 wargame, Battletroops, for
the browser. Suitable for single-player solo play or two-player hotseat.</p>
<p>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.</p>
</section>
<section>
<h3>
<a href="https://hex.pm/packages/pandoc">Pandoc</a>
<a class="app-source-code-link" href="/git/pandoc/">
View Source Code
</a>
</h3>
<p>
A Hex package for installing and invoking <a href="https://pandoc.org/">Pandoc</a>
("a universal document converter"), fashioned after Phoenix's
<a href="https://hex.pm/packages/esbuild">Esbuild</a>
and <a href="https://hex.pm/packages/tailwind">Tailwind</a>
packages. Also included is a file system watcher, so that converted
documents are updated as soon as content changes are saved.
</p>
</section>