Go to file
2024-08-30 00:09:57 +02:00
2022-01-19 21:18:40 +01:00
2022-01-19 21:19:15 +01:00
2024-07-13 10:41:57 +02:00
2022-01-20 07:23:37 +01:00
2024-08-30 00:09:57 +02:00
2022-01-19 21:19:13 +01:00
2022-01-19 21:19:13 +01:00
2015-08-27 20:57:53 +02:00
2024-07-13 09:35:13 +02:00
2022-01-19 21:19:13 +01:00
2024-07-13 09:35:13 +02:00
2024-07-13 10:41:57 +02:00
2024-07-14 15:21:03 +02:00
2022-01-20 07:23:29 +01:00

tojnar.cz

This directory contains the full source code for https://tojnar.cz. The content is mostly written in CommonMark and converted into HTML with site, a custom static site generator based on hakyll.

The project is structured as follows:

  • content/ actual content of the site (articles, news posts, photos and other files for downloading).
    • content/novinky/ news posts.
  • static/ files used as a part of the layout (styles, scripts, images aside from content…), mostly kept as they are.
  • templates/ building blocks for generating the HTML.
  • site/ source code of the site program.

The revision history is tracked using Git, with up-to-date version available on https://code.ogion.cz/tojnar.cz/tojnar.cz.

Usage

The site program needs to be run in this directory. It supports the following subcommands:

  • site build produces a public/ directory with the website to be viewed in a web browser or uploaded to the server. If source content changes, only the pages corresponding to changed files will be updated.
  • site rebuild cleans the public/ directory and then runs the build subcommand.
  • site watch starts a web server that will serve the built website and automatically rebuild pages corresponding to changed files. While it is running, you can browse the site on http://localhost:8000.
  • site check checks for broken links in the generated website.
  • site deploy uploads the contents of the public/ directory to the web server.

UNIX

The project uses Nix package manager to build the site program. Run nix-shell to enter a shell containing site program for controlling the website.

If you have direnv installed, you can instead run direnv allow and it will prepare the correct shell environment automatically every time you enter the directory.

Description
No description provided
Readme 21 GiB
Languages
HTML 51.2%
Hack 30.6%
JavaScript 15.2%
PHP 1.4%
CSS 1.2%
Other 0.4%