Commit graph

227 commits

Author SHA1 Message Date
Adnan Maolood a32b5c7493 page: Add Prev and Next fields 2021-05-12 15:10:40 -04:00
Adnan Maolood 74a4582a8b 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
Adnan Maolood 0891b2e0e0 kiln new: Create public directory 2021-05-12 01:49:16 -04:00
Adnan Maolood e167825499 docs: Remove link to TOML website 2021-05-10 15:43:15 -04:00
Adnan Maolood 462cbe442a Update example site configuration 2021-05-10 15:15:33 -04:00
Adnan Maolood aee95d68d0 Update documentation 2021-05-10 15:09:23 -04:00
Adnan Maolood 01815ec49d Move templates to templates/_default 2021-05-10 15:03:02 -04:00
Adnan Maolood 7645acdcbd Move funcs to funcs.go 2021-05-10 15:01:22 -04:00
Adnan Maolood e096623590 Add strings.Join function 2021-05-10 13:21:43 -04:00
Adnan Maolood f25f0125d3 Add string functions for use in templates 2021-05-10 13:11:10 -04:00
Adnan Maolood d7929490ed Update documentation 2021-05-10 12:47:38 -04:00
Adnan Maolood 4e47940307 Allow multiple input formats per task 2021-05-10 12:23:29 -04:00
Adnan Maolood d25dc206ff Use other toml library 2021-05-10 12:16:19 -04:00
Adnan Maolood 28d241980a Expose path functions to permalinks 2021-05-10 11:31:32 -04:00
Adnan Maolood d1ab0d1aae Fix path functions 2021-05-10 11:30:28 -04:00
Adnan Maolood 29795fa5b1 Add path functions for use in templates 2021-05-10 11:12:28 -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 c0d44a791b config: Make tasks an array 2021-05-10 10:26:12 -04:00
Adnan Maolood 492a15cfb6 Update default atom.xml template 2021-05-10 01:08:39 -04:00
Adnan Maolood fbba43c705 Revert "Use text/template for Atom feed template"
This reverts commit c285fe4ff8.
2021-05-10 00:56:27 -04:00
Adnan Maolood f74b9b72af Remove redundant function 2021-05-10 00:54:13 -04:00
Adnan Maolood 7b634acde8 Add safeHTML, safeCSS, etc. functions 2021-05-10 00:50:29 -04:00
Adnan Maolood ebd42737c9 Implement support for ugly URLs 2021-05-10 00:44:25 -04:00
Adnan Maolood c285fe4ff8 Use text/template for Atom feed template 2021-05-09 19:58:56 -04:00
Adnan Maolood eca5dda9d6 Implement support for base templates 2021-05-09 19:42:06 -04:00
Adnan Maolood b2ca453750 Extract frontmatter before preprocessing 2021-05-09 16:14:53 -04:00
Adnan Maolood 19852f9e3b Add html function for rendering HTML in templates 2021-05-08 20:28:45 -04:00
Adnan Maolood a58ed86fcd config: Make templates private 2021-05-08 20:27:49 -04:00
Adnan Maolood a6f582f284 page: Add Name field 2021-05-01 14:34:25 -04:00
Adnan Maolood 2301158ba1 Implement support for HTML templates 2021-05-01 14:11:41 -04:00
Adnan Maolood 6ec7b09c3a Implement support for partial templates 2021-05-01 13:56:44 -04:00
Adnan Maolood 2409741e19 docs: Fix example configuration 2021-04-26 17:50:36 -04:00
Adnan Maolood 1a4b432516 Revert "Drop required Go version to 1.15"
This reverts commit a48895dda1.
2021-04-26 14:55:47 -04:00
Adnan Maolood a48895dda1 Drop required Go version to 1.15 2021-04-26 14:55:06 -04:00
Adnan Maolood b001bce9da Update documentation 2021-04-26 14:49:39 -04:00
Adnan Maolood 17d1f34fc7 dir: Pass Date to templates 2021-04-26 14:47:45 -04:00
Adnan Maolood 2fc38a97f1 page: Trim newlines after frontmatter 2021-04-26 12:01:46 -04:00
Adnan Maolood f28ba9b9fd Improve error message on frontmatter parse error 2021-04-26 11:50:53 -04:00
Adnan Maolood 1b7f5b4ab4 Remove unused dependencies 2021-04-24 14:29:03 -04:00
Adnan Maolood 951b8a9d5e Update documentation 2021-04-24 14:18:26 -04:00
Adnan Maolood 7853cc5e77 page: Implement frontmatter support
Also drop support for parsing titles from Gemini content.
2021-04-24 13:25:20 -04:00
Adnan Maolood 1996983e96 frontmatter: Fix extraction algorithm 2021-04-24 13:24:31 -04:00
Adnan Maolood d74ff31a3c Add frontmatter extractor 2021-04-21 15:13:45 -04:00
Adnan Maolood b58deee457 Make templates optional 2021-04-21 14:39:13 -04:00
Adnan Maolood 793116c853 Write default templates when creating a new site 2021-04-21 14:03:43 -04:00
Adnan Maolood dbc3791879 page: Don't trim dates from paths without dates 2021-04-21 13:49:49 -04:00
Adnan Maolood e088f9c750 Update documentation 2021-04-20 21:37:05 -04:00
Adnan Maolood 4cc4546526 Implement support for preprocess command 2021-04-20 21:28:31 -04:00