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

197 Commits

Author SHA1 Message Date
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
4b23a11d0b Fix index page for new sites 2021-05-17 12:55:15 -04:00
adnano
5bfc0f7d77 dir: Sort pages by date in reverse order 2021-05-17 12:53:35 -04:00
adnano
98be92555b docs: Document built-in functions 2021-05-17 12:41:37 -04:00
adnano
ccb043d09e docs: Document strings functions 2021-05-17 12:25:51 -04:00
adnano
5de22344c8 docs: Document reverse function 2021-05-17 11:52:54 -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
Ian M. Jones
bdc6c7632b Fix kiln.1 not building due to syntax error. 2021-05-14 21:18:53 -04:00
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