1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-12-04 23:18:14 +01:00
Commit Graph

186 Commits

Author SHA1 Message Date
adnano
758d821b3f docs: Document permalinks 2021-05-14 00:28:41 -04:00
adnano
0e54f9eec5 Add dir and page functions and fix partial function 2021-05-14 00:17:10 -04:00
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 ce0b2cff1ec980995baf47e6727375cf7dc8da53.
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 e74558dd3a28a207b57def11f1b64edbcc0a5ce3.
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