Steps to setup the project:
- Run
raco pkg install --auto tr
in the project - Creates a directory
mkdir your-site
and goes into it - Run
raco tr init
then updatesite.json
raco tr init
do the following
- Create
.gitignore
with_tmp/ _build/ assets/
- Create
site.json
with{ "domain": "your domain", "title": "your site title", "description": "your site description" }
git clone https://git.sr.ht/\~dannypsnl/tr-assets assets
- Create directory
content
andcontent/post
git init
Now you can add some *.scrbl
in content/
directory as you wanted. Each *.scrbl
is called a card.
Directory content/post
is treated specially in that RSS only use cards in this directory as items.
A card addr.scrbl
(no matter its full path) has an address addr
, and the address must be unique in the whole TR project.
The content of card mostly are just HTML in at-exp form, scribble HTML describes more about what can be used.
Further guide will teach you what's in the toolbox.