1.6 KiB
Lektor recipes
Generating a static site for recipes. Small, fast, multi-language, indexed.
Styling is optimized for desktop, mobile, and print output. At some point I may add search filters and offline archives for mobile devices.
This project is built upon Lektor.
Install
-
Download Lektor and follow the instructions.
-
Clone this repository and change to the
srcdirectory. -
Run
lektor serverto run a local server and preview the page. Note: Open http://127.0.0.1:5000/en/ instead of the default/path.**
Deploy
You need to add a deployment setting to the project file. Either apply something from the official docs, or run a custom rsync command:
rsync -rclzv --delete --exclude=.* SRC DST
** You don't have to worry about the redirect.
The root/index.html is copied to the destination.
Instead, you could also delete root/ and change the project file.
Set url_prefix to / for one of the alternates.
Modify
Thanks to Lektor you have a simple content management system (see screenshot below). Two things to note:
-
Measurements have to be added manually to settings. Don't forget to pluralize (c, cup, cups, etc.)
-
You can group ingredients if the line ends with a colon (
:)
Also, see Lektor docs and jinja2 template documentation.


