Edd Salkield
63b63a32e1
templates.go: Support default base templates
...
If a base template is not found in the current directory, look for a
default base template at templates/_default/base.ext.
Also prevent partial templates from inheriting from base templates.
2022-09-27 11:42:14 -04:00
adnano
0a2e7b6fd0
templates: Fix base template block customization
...
Previously, kiln would error out if any blocks defined in the base
template were not defined in page or index templates. Instead, make
customizing base template blocks optional. This also allows base
template blocks to have a default value.
2022-09-27 08:43:24 -04:00
Edd Salkield
04b19938ea
templates.go: Resolve symlinks
2022-09-25 10:34:20 -04:00
adnano
74cb6c4c4f
Use io/fs
2022-02-09 13:18:11 -05: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
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
8064684827
Revert "Use text/template for Atom feed template"
...
This reverts commit ce0b2cff1e
.
2021-05-10 00:56:27 -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
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
f054cdf391
Make templates optional
2021-04-21 14:39:13 -04:00
adnano
27684b26f3
Write default templates when creating a new site
2021-04-21 14:03:43 -04:00
adnano
3dfdf507dc
Add 'kiln new' command
2021-04-20 16:00:39 -04:00
adnano
feb0c77d66
Add initial implementation of build tasks
2021-03-20 23:17:58 -04:00
adnano
7ee6591e9c
Embed built-in templates with embed.FS
2021-02-27 15:56:23 -05:00
adnano
713f2e33c8
Fix unclosed tags in Atom template
2020-11-27 19:06:38 -05:00
adnano
d10b827ac0
Allow specifying multiple site URLs
2020-11-27 18:24:31 -05:00
adnano
9676566325
Remove directory links from default index template
2020-11-25 10:12:39 -05:00
adnano
b03f8f3b00
Remove site title from default page template
2020-11-24 20:09:55 -05:00
adnano
c88537891c
Allow overriding the default templates
2020-11-22 15:51:07 -05:00
adnano
fe4dcb144e
Implement atom feeds
2020-11-22 15:14:50 -05:00
adnano
f14999d88a
Add support for Gemini feeds
2020-11-20 12:07:38 -05:00
adnano
99e1906d90
Implement frontmatter and site configuration
2020-11-10 19:33:45 -05:00
adnano
919cdd7556
Refactor
2020-09-30 21:57:59 -04:00
adnano
bc514e7f67
Fix updated date in Atom feeds
2020-09-30 00:27:59 -04:00
adnano
399e543b4a
Refactor
2020-09-29 21:32:17 -04:00
adnano
531b92f191
Implement Atom feed output
2020-09-29 16:42:27 -04:00