Commit graph

17 commits

Author SHA1 Message Date
Adnan Maolood 36bf485c1d page: Add GetPage function 2022-06-27 14:15:10 -04:00
IMG-PRCSNG 3e1683ecfc Update site params to a nested map 2022-03-05 13:31:35 -05:00
Adnan Maolood 9263b73543 page: Ability to specify build tasks per page
Implements: https://todo.sr.ht/~adnano/kiln/15
2022-02-09 15:52:22 -05:00
Adnan Maolood 6fc626d41e Use io/fs 2022-02-09 13:18:11 -05:00
Adnan Maolood fe04b580e8 site: Expose root page to templates 2022-02-09 12:29:41 -05:00
Adnan Maolood 38a168c514 Use github.com/google/shlex to parse commands
Implements: https://todo.sr.ht/~adnano/kiln/21
2022-02-09 00:30:45 -05:00
Adnan Maolood f87fa392d5 site: Implement support for task URLs
Resolves #23
2021-10-02 19:20:50 -04:00
Adnan Maolood 45d2f0e4cb Merge Page and Dir structs 2021-10-02 18:03:30 -04:00
Adnan Maolood 6eb5e45afa site: Remove support for site URLs 2021-10-02 16:59:36 -04:00
Adnan Maolood 686f6a78d6 site: Add Generated variable
This also removes the need for the feed Updated variable.
2021-10-02 16:25:05 -04:00
Adnan Maolood 5a674c0ea5 Remove support for deprecated feeds 2021-10-02 16:19:08 -04:00
Adnan Maolood 260de0842d site: Clean up deprecation warning 2021-09-03 00:45:12 -04:00
Adnan Maolood 3b04218396 dir: Combine handling of feeds and deprecated feeds 2021-09-03 00:23:00 -04:00
Adnan Maolood 7ba6930188 dir: Avoid looping through all the feeds
Maintain a map of feeds to avoid looping through all the configured
feeds for a task.
2021-09-02 23:41:54 -04:00
oliverpool 66f25b0b3c tasks: add tasks.feeds support
Every task can now have a [[tasks.feeds]] entry to generate one or more feeds.
It must have the following arguments:

[[tasks.feeds]]
input_dir = ""
title = "Example feed"
template = "atom.xml"
output = "atom.xml"
2021-09-02 19:25:32 -04:00
Adnan Maolood df8dc102ae Support [params] in site config 2021-06-26 02:09:55 -04:00
Adnan Maolood 8a9cff4c2e Add dir and page functions and fix partial function 2021-05-14 00:17:10 -04:00
Renamed from config.go (Browse further)