haccfiles/websites/docs.hacc.space
stuebinm 4dc9cdac91 flake.nix: move websites from packages.* to apps.*
this should not change their behaviour with "nix run", which was
the reason for putting them there in the first place (however, it does
remove the ability to build them with "nix build", but afaik this has
never been used by anyone).

This means the packages.* output is now left unused, so we can use it
instead for things that actually are programs which want to expose
(see the next commit after this one for an example).
2024-08-30 17:55:03 +02:00
..
sass meta: new structure 2024-01-11 23:49:26 +01:00
static meta: new structure 2024-01-11 23:49:26 +01:00
templates meta: new structure 2024-01-11 23:49:26 +01:00
config.toml meta: new structure 2024-01-11 23:49:26 +01:00
content meta: new structure 2024-01-11 23:49:26 +01:00
default.nix flake.nix: move websites from packages.* to apps.* 2024-08-30 17:55:03 +02:00
Readme.md meta: new structure 2024-01-11 23:49:26 +01:00

Markdown docs with zola.

Zola is a static site generated written in Rust (which you'll notice since sometimes it panics).

To run the site locally:

zola serve

Directory Layout

All the important stuff goes into content. If you create subdirectories, make sure you remembered to also create an _index.md file for it (if in doubt, just copy the one at content/_index.md); otherwise pages in there won't work.

templates is not for site templates, but specifies how markdown files should be turned into html. If an autogenerated link broke, you'll probably have to change something in there. sass and static do exactly what they sound like.

It usually shouldn't be necessary to change config.toml, but if it is, here is the list of all available options.

File Layout

Markdown files start with a frontmatter that should look something like so:

+++
title = "blåhaj"
taxonomies.categories = [ "flausch" ]
+++

[actual markdown goes here]

The frontmatter is TOML; the taxonomies.* keys are special and can be used to aggregate posts if enabled in config.toml (currently that's only the case for categories, though). See also the list of all available keys.

Please don't repeat the page's title in markdown, otherwise it'll appear twice in the html.