Commit graph

234 commits

Author SHA1 Message Date
adnano 70cc182bf1 templates: Return error from LoadTemplate 2021-05-13 23:56:52 -04:00
adnano b6614b71da funcs: Add reverse 2021-05-12 17:10:19 -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 f68f86594b templates: Parse all templates in the directory
To allow for specifying custom templates in frontmatter in the future.
2021-05-12 03:35:54 -04:00
adnano 200153e486 kiln new: Create public directory 2021-05-12 01:49:16 -04:00
adnano 2d744d310e docs: Remove link to TOML website 2021-05-10 15:43:15 -04:00
adnano 26f44d157a Update example site configuration 2021-05-10 15:15:33 -04:00
adnano bd3ffe23d9 Update documentation 2021-05-10 15:09:23 -04:00
adnano de6b0258fc Move templates to templates/_default 2021-05-10 15:03:02 -04:00
adnano 535ec3752f Move funcs to funcs.go 2021-05-10 15:01:22 -04:00
adnano 62c0d1f778 Add strings.Join function 2021-05-10 13:21:43 -04:00
adnano 4272b2261f Add string functions for use in templates 2021-05-10 13:11:10 -04:00
adnano 938d7ebfda Update documentation 2021-05-10 12:47:38 -04:00
adnano 61a1380f1c Allow multiple input formats per task 2021-05-10 12:23:29 -04:00
adnano c2c20ffd1e Use other toml library 2021-05-10 12:16:19 -04:00
adnano 318241b712 Expose path functions to permalinks 2021-05-10 11:31:32 -04:00
adnano 08443f1493 Fix path functions 2021-05-10 11:30:28 -04:00
adnano 69f39d7303 Add path functions for use in templates 2021-05-10 11:12:28 -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 ef3d518d9a config: Make tasks an array 2021-05-10 10:26:12 -04:00
adnano bfc758430b Update default atom.xml template 2021-05-10 01:08:39 -04:00
adnano 8064684827 Revert "Use text/template for Atom feed template"
This reverts commit ce0b2cff1e.
2021-05-10 00:56:27 -04:00
adnano f7bfe681d9 Remove redundant function 2021-05-10 00:54:13 -04:00
adnano e976aa1be7 Add safeHTML, safeCSS, etc. functions 2021-05-10 00:50:29 -04:00
adnano d7567ca69f Implement support for ugly URLs 2021-05-10 00:44:25 -04:00
adnano ce0b2cff1e Use text/template for Atom feed template 2021-05-09 19:58:56 -04:00
adnano 86ab6169a5 Implement support for base templates 2021-05-09 19:42:06 -04:00
adnano 4736a6580e Extract frontmatter before preprocessing 2021-05-09 16:14:53 -04:00
adnano fa19a1746b Add html function for rendering HTML in templates 2021-05-08 20:28:45 -04:00
adnano 13b8bb7ff3 config: Make templates private 2021-05-08 20:27:49 -04:00
adnano 12ddad63e4 page: Add Name field 2021-05-01 14:34:25 -04:00
adnano fe4afb0d2b Implement support for HTML templates 2021-05-01 14:11:41 -04:00
adnano 3743589c38 Implement support for partial templates 2021-05-01 13:56:44 -04:00
adnano ff1e4eb29d docs: Fix example configuration 2021-04-26 17:50:36 -04:00
adnano 5be791ba7b Revert "Drop required Go version to 1.15"
This reverts commit e74558dd3a.
2021-04-26 14:55:47 -04:00
adnano e74558dd3a Drop required Go version to 1.15 2021-04-26 14:55:06 -04:00
adnano d7f1e11553 Update documentation 2021-04-26 14:49:39 -04:00
adnano 5be3306c6d dir: Pass Date to templates 2021-04-26 14:47:45 -04:00
adnano 0a6d61eb5c page: Trim newlines after frontmatter 2021-04-26 12:01:46 -04:00
adnano f4a603658e Improve error message on frontmatter parse error 2021-04-26 11:50:53 -04:00
adnano 47e1c2c0f5 Remove unused dependencies 2021-04-24 14:29:03 -04:00
adnano 4710f67ead Update documentation 2021-04-24 14:18:26 -04:00
adnano fbf5d3c10d page: Implement frontmatter support
Also drop support for parsing titles from Gemini content.
2021-04-24 13:25:20 -04:00