Edd Salkield
ade84c9358
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
Adnan Maolood
299cb5e1d1
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
4b39c0bfe1
templates.go: Resolve symlinks
2022-09-25 10:34:20 -04:00
Adnan Maolood
6fc626d41e
Use io/fs
2022-02-09 13:18:11 -05:00
Adnan Maolood
8a9cff4c2e
Add dir and page functions and fix partial function
2021-05-14 00:17:10 -04:00
Adnan Maolood
39f456d3ec
templates: Return error from LoadTemplate
2021-05-13 23:56:52 -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
fbba43c705
Revert "Use text/template for Atom feed template"
...
This reverts commit c285fe4ff8
.
2021-05-10 00:56:27 -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
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
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
c9004640db
Add 'kiln new' command
2021-04-20 16:00:39 -04:00
Adnan Maolood
ace33d8b1e
Add initial implementation of build tasks
2021-03-20 23:17:58 -04:00
Adnan Maolood
d565d4b8c8
Embed built-in templates with embed.FS
2021-02-27 15:56:23 -05:00
Adnan Maolood
d91de5881c
Fix unclosed tags in Atom template
2020-11-27 19:06:38 -05:00
Adnan Maolood
7760b5529e
Allow specifying multiple site URLs
2020-11-27 18:24:31 -05:00
Adnan Maolood
134f38bb58
Remove directory links from default index template
2020-11-25 10:12:39 -05:00
Adnan Maolood
92463aff4f
Remove site title from default page template
2020-11-24 20:09:55 -05:00
Adnan Maolood
e4b1fcef89
Allow overriding the default templates
2020-11-22 15:51:07 -05:00
Adnan Maolood
aeea076d42
Implement atom feeds
2020-11-22 15:14:50 -05:00
Adnan Maolood
804de9b94d
Add support for Gemini feeds
2020-11-20 12:07:38 -05:00
Adnan Maolood
8ce3f5c0bd
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