Commit graph

40 commits

Author SHA1 Message Date
adnano 928e336122 site: Add Generated variable
This also removes the need for the feed Updated variable.
2021-10-02 16:25:05 -04:00
adnano d3fddff4e6 Remove support for deprecated feeds 2021-10-02 16:19:08 -04:00
adnano bfdbace471 dir: Return errors from executing process commands 2021-09-03 00:31:10 -04:00
adnano d300bc23c0 dir: Combine handling of feeds and deprecated feeds 2021-09-03 00:23:00 -04:00
adnano bad156cad3 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 2ef8f77d24 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
adnano 40322facd2 funcs: Add exec 2021-05-22 20:41:52 -04:00
adnano 78e5bf51c6 Rename Path fields to Permalink 2021-05-21 17:08:36 -04:00
adnano 62d414af39 dir: Add Params method 2021-05-20 15:59:43 -04:00
Ian M. Jones 5592026db7 Fix post ordering by Weight, reversed Date and FilePath. 2021-05-18 20:28:00 -04:00
adnano 5bfc0f7d77 dir: Sort pages by date in reverse order 2021-05-17 12:53:35 -04:00
adnano 6adfcae48d dir: Fix creation of atom template directory 2021-05-15 21:27:11 -04:00
adnano 9f0a4d822e dir: Don't create unnecessary directories 2021-05-15 21:24:01 -04:00
adnano 13b3d24738 dir: Fix atom template output path 2021-05-15 21:04:15 -04:00
adnano 0e54f9eec5 Add dir and page functions and fix partial function 2021-05-14 00:17:10 -04:00
adnano 636a41126b dir: Sort by weight, date, and filepath 2021-05-12 16:35:00 -04:00
adnano 2a9691f947 Add FilePath and Weight field to pages 2021-05-12 16:22:49 -04:00
adnano bd19f7da83 dir: Fix assignment of Prev field 2021-05-12 16:20:19 -04:00
adnano 5d3c3b55b8 Fix index page paths 2021-05-12 15:29:13 -04:00
adnano 540181648b Use _index for index pages
Pages with the name "index" will use the page template, and pages with
the name "_index" will use the index template.
2021-05-12 15:25:42 -04:00
adnano 5fc28c9b78 page: Add Prev and Next fields 2021-05-12 15:10:40 -04:00
adnano 61a1380f1c Allow multiple input formats per task 2021-05-10 12:23:29 -04:00
adnano 66ac6015c9 Implement support for permalinks 2021-05-10 11:09:16 -04:00
adnano e8e47f1bad page: Remove Name field 2021-05-10 11:02:43 -04:00
adnano cf7a24bb6c dir: Make methods private 2021-05-10 10:35:54 -04:00
adnano d7567ca69f Implement support for ugly URLs 2021-05-10 00:44:25 -04:00
adnano 4736a6580e Extract frontmatter before preprocessing 2021-05-09 16:14:53 -04:00
adnano 13b8bb7ff3 config: Make templates private 2021-05-08 20:27:49 -04:00
adnano 5be3306c6d dir: Pass Date to templates 2021-04-26 14:47:45 -04:00
adnano f054cdf391 Make templates optional 2021-04-21 14:39:13 -04:00
adnano 20efed1e9a Implement support for preprocess command 2021-04-20 21:28:31 -04:00
adnano 87c65818be Fix atom feed generation 2021-04-20 14:49:45 -04:00
adnano 27fbca53f3 Remove unused code 2021-04-12 00:49:58 -04:00
adnano 5719af8727 dir: Don't index static files 2021-04-11 17:40:11 -04:00
adnano feb0c77d66 Add initial implementation of build tasks 2021-03-20 23:17:58 -04:00
adnano 9154319862 Add Format interface 2021-02-27 21:53:16 -05:00
adnano 7a5093b046 Fix template lookup 2020-11-27 18:49:53 -05:00
adnano fe4dcb144e Implement atom feeds 2020-11-22 15:14:50 -05:00
adnano afacbfafa1 Provide index file metadata to index templates 2020-11-20 15:03:41 -05:00
adnano f14999d88a Add support for Gemini feeds 2020-11-20 12:07:38 -05:00