Commit graph

37 commits

Author SHA1 Message Date
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 c7d6e13831 funcs: Add exec 2021-05-22 20:41:52 -04:00
Adnan Maolood b0b15146f9 Rename Path fields to Permalink 2021-05-21 17:08:36 -04:00
Adnan Maolood c632c0f01a dir: Add Params method 2021-05-20 15:59:43 -04:00
Ian M. Jones 3667c41c57 Fix post ordering by Weight, reversed Date and FilePath. 2021-05-18 20:28:00 -04:00
Adnan Maolood 2e5ed347ea dir: Sort pages by date in reverse order 2021-05-17 12:53:35 -04:00
Adnan Maolood 277842223e dir: Fix creation of atom template directory 2021-05-15 21:27:11 -04:00
Adnan Maolood 5eb242f77d dir: Don't create unnecessary directories 2021-05-15 21:24:01 -04:00
Adnan Maolood 495941a8cb dir: Fix atom template output path 2021-05-15 21:04:15 -04:00
Adnan Maolood 8a9cff4c2e Add dir and page functions and fix partial function 2021-05-14 00:17:10 -04:00
Adnan Maolood da78298c3e dir: Sort by weight, date, and filepath 2021-05-12 16:35:00 -04:00
Adnan Maolood 9f0f776769 Add FilePath and Weight field to pages 2021-05-12 16:22:49 -04:00
Adnan Maolood e1894f0e52 dir: Fix assignment of Prev field 2021-05-12 16:20:19 -04:00
Adnan Maolood b250f9e4c5 Fix index page paths 2021-05-12 15:29:13 -04:00
Adnan Maolood 3571ef67c1 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
Adnan Maolood a32b5c7493 page: Add Prev and Next fields 2021-05-12 15:10:40 -04:00
Adnan Maolood 4e47940307 Allow multiple input formats per task 2021-05-10 12:23:29 -04:00
Adnan Maolood db44d5fcf8 Implement support for permalinks 2021-05-10 11:09:16 -04:00
Adnan Maolood 1af6d1a492 page: Remove Name field 2021-05-10 11:02:43 -04:00
Adnan Maolood 23ac0dd4c1 dir: Make methods private 2021-05-10 10:35:54 -04:00
Adnan Maolood ebd42737c9 Implement support for ugly URLs 2021-05-10 00:44:25 -04:00
Adnan Maolood b2ca453750 Extract frontmatter before preprocessing 2021-05-09 16:14:53 -04:00
Adnan Maolood a58ed86fcd config: Make templates private 2021-05-08 20:27:49 -04:00
Adnan Maolood 17d1f34fc7 dir: Pass Date to templates 2021-04-26 14:47:45 -04:00
Adnan Maolood b58deee457 Make templates optional 2021-04-21 14:39:13 -04:00
Adnan Maolood 4cc4546526 Implement support for preprocess command 2021-04-20 21:28:31 -04:00
Adnan Maolood 80b314ffb7 Fix atom feed generation 2021-04-20 14:49:45 -04:00
Adnan Maolood c557a2e020 Remove unused code 2021-04-12 00:49:58 -04:00
Adnan Maolood 78a05c255b dir: Don't index static files 2021-04-11 17:40:11 -04:00
Adnan Maolood ace33d8b1e Add initial implementation of build tasks 2021-03-20 23:17:58 -04:00
Adnan Maolood 3482e86055 Add Format interface 2021-02-27 21:53:16 -05:00
Adnan Maolood be14245284 Fix template lookup 2020-11-27 18:49:53 -05:00
Adnan Maolood aeea076d42 Implement atom feeds 2020-11-22 15:14:50 -05:00
Adnan Maolood b4c3d7f442 Provide index file metadata to index templates 2020-11-20 15:03:41 -05:00
Adnan Maolood 804de9b94d Add support for Gemini feeds 2020-11-20 12:07:38 -05:00