1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-11-22 20:22:00 +01:00
Commit Graph

274 Commits

Author SHA1 Message Date
adnano
dfe0279d5c Update dependencies 0.4.1 2024-05-11 15:30:17 -04:00
adnano
0090f4e615 Update README.md 2024-05-11 10:33:09 -04:00
oliverpool
10e289c6d6 docs: PATCH prefix 2022-12-04 10:48:41 -05:00
oliverpool
66e1fd8463 go.mod: importable module path 2022-12-03 11:18:14 -05:00
Edd Salkield
7ec407b8a3 docs: Clarify optional template block behaviour 2022-10-31 13:01:19 -04:00
Edd Salkield
779cd8571c docs: Update frontmatter template override documentation 2022-10-04 11:15:44 -04:00
Edd Salkield
505244bea2 page.go: report error in template override failure
Raise an error when users specify a template in frontmatter which cannot
be resolved.
2022-10-04 11:08:11 -04:00
adnano
81e35cb1eb site: Configure permalinks per task 2022-10-01 15:25:13 -04:00
adnano
085ef5aded Implement support for per-page templates
Implements: https://todo.sr.ht/~adnano/kiln/28
2022-10-01 15:11:59 -04:00
Edd Salkield
da0af1701c docs: Update template-related documentation 2022-09-27 12:02:37 -04:00
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
adnano
f91cf56b32 page: Don't fallback to base template
Don't fallback to the base template when looking for page and index
templates.
2022-09-25 10:56:07 -04:00
Edd Salkield
04b19938ea templates.go: Resolve symlinks 2022-09-25 10:34:20 -04:00
adnano
3d9438be7f Show the task for which the error occured 2022-09-24 11:42:16 -04:00
adnano
7b679a2e84 Simplify error handling for static content 2022-09-24 11:40:48 -04:00
Duncan Bayne
d1104cc712 Display detailed error message on static build failure
Fixes: https://todo.sr.ht/~adnano/kiln/29
2022-09-24 11:13:33 -04:00
adnano
a6daae817c templates/_default/atom.xml: Add required links
Entries must contain a alternate link if there is no content element.
2022-09-24 11:09:04 -04:00
adnano
9d0c5c2af7 Makefile: make POSIX-compliant 0.3.2 2022-07-06 09:18:16 -04:00
adnano
01674d3d05 Makefile: Use phony target 2022-07-06 09:04:10 -04:00
adnano
0301276c75 Remove version command 2022-07-06 08:59:49 -04:00
Edd Salkield
748dfb0c3f docs: Document mathematical functions 2022-07-04 13:16:24 -04:00
Edd Salkield
163c44aaf0 funcs.go: Add mathematical functions 2022-07-04 13:16:24 -04:00
adnano
602f5097d6 docs: Document page .GetPage function 2022-06-27 15:06:57 -04:00
adnano
299aa6cb5c page: Add GetPage function 2022-06-27 14:15:10 -04:00
adnano
315ff5eaac Bump version to 0.3.1 0.3.1 2022-06-17 14:54:49 -04:00
adnano
7fb173213e frontmatter: Allow CRLF line endings 2022-06-14 17:42:23 -04:00
adnano
9f415ca3a6 Bump version to 0.3.0 0.3.0 2022-05-03 08:14:44 -04:00
IMG-PRCSNG
f6461cab35 Update site params to a nested map 2022-03-05 13:31:35 -05:00
adnano
f7c98c1514 config.toml: Update input_dir 0.3.0-alpha 2022-02-09 19:10:50 -05:00
adnano
6f5c3f52e8 templates/_default/index.gmi: Minor formatting nit 2022-02-09 19:07:03 -05:00
adnano
ecd9f72eeb page: Ability to specify build tasks per page
Implements: https://todo.sr.ht/~adnano/kiln/15
2022-02-09 15:52:22 -05:00
adnano
40d0833127 templates/_default/atom.xml: Fix feed URL 2022-02-09 13:31:59 -05:00
adnano
74cb6c4c4f Use io/fs 2022-02-09 13:18:11 -05:00
adnano
3aee5385e9 Use path/filepath instead of path 2022-02-09 12:39:15 -05:00
adnano
e3a39e45ee site: Expose root page to templates 2022-02-09 12:29:41 -05:00
adnano
13ff1a687c site: Set URL for root directory 2022-02-09 09:22:14 -05:00
adnano
e4217aca3f docs: Move functions to bottom 2022-02-09 01:43:11 -05:00
adnano
a5b2fe82ba docs: Improve page documentation 2022-02-09 01:40:03 -05:00
adnano
d6f8c03ec3 page: Fallback to base template for page/index templates
Implements: https://todo.sr.ht/~adnano/kiln/22
2022-02-09 00:40:28 -05:00
adnano
fb6470aa5f Use github.com/google/shlex to parse commands
Implements: https://todo.sr.ht/~adnano/kiln/21
2022-02-09 00:30:45 -05:00
adnano
7f342d411b docs: Update frontmatter example 2022-02-09 00:04:39 -05:00
adnano
7d0dcae66e docs: Update example configuration 2022-02-09 00:02:53 -05:00
adnano
25abdfe285 docs: Add note 2022-02-08 23:54:59 -05:00
adnano
fd215a1c7f docs: Update template variables 2022-02-08 23:52:06 -05:00
adnano
859fa26478 Preserve mode bits for static files
Fixes: https://todo.sr.ht/~adnano/kiln/25
2021-11-25 11:44:01 -05:00
adnano
d2967cb82b docs: Tweak wording 2021-10-02 21:22:54 -04:00
adnano
7013fe9fb9 site: Implement support for task URLs
Resolves #23
2021-10-02 19:20:50 -04:00
adnano
762fe469c4 page: Fix output path for index pages 2021-10-02 18:31:22 -04:00
adnano
5f16ca42d5 page: Sort Dirs 2021-10-02 18:08:11 -04:00