Commit Graph
48 Commits
Author SHA1 Message Date
James Mills 6006bfe5b7 Add support for custom slugs 2025-10-17 01:07:17 +10:00
James Mills f0ff64dac6 Revert "Fix behavior to index all documents (including drafts) and remove source and content vars"
This reverts commit e29d8a0cf5.
2025-10-04 13:51:51 +10:00
James Mills e29d8a0cf5 Fix behavior to index all documents (including drafts) and remove source and content vars 2025-10-04 13:51:04 +10:00
James Mills 67cf3b2e40 Add better debug logging of run() timings 2025-09-30 00:49:37 +10:00
James Mills 0df79a8a47 Add duration of run() 2025-09-30 00:06:36 +10:00
James Mills a0b5d8af87 Add support for external custom commands (Git style) 2025-09-28 07:09:25 +10:00
James Mills 280def0cff Update static library and don't ignore default .routes 2025-09-28 06:34:42 +10:00
James Mills f57bee3781 Add support for more file types 2025-09-27 12:44:26 +10:00
James Mills be3ce18e66 Add -l/--levels and -m/--min support to zs headings 2025-09-27 10:46:42 +10:00
James Mills aa5e2c6cda Add headings sub-command for easier toc building and cleaned up the codebase 2025-09-27 10:04:29 +10:00
James Mills a1579bf714 Add support for using custom stylesheet for chroma, fix some bugs and add extra debug logging 2025-09-26 20:57:55 +10:00
James Mills bd3a7bdf89 Fix serving non-existent pages by disabling SPA mode 2025-01-01 15:53:18 +10:00
James Mills 37133be5b9 Add default Dockerfile 2024-12-26 12:19:27 +10:00
James Mills 1e84d9a585 Add zs init command to initialize new site 2024-12-25 22:43:00 +10:00
James Mills 032c29a157 Fix zs to not use hard line breaks for newlines 2024-10-02 02:20:08 +10:00
James Mills ce83f0d226 Add feedback on what port zs serve listening on 2024-10-01 23:03:25 +10:00
James Mills f69d56187b Fix bugs with referencing non-existent layouts 2024-08-24 16:17:22 +10:00
James Mills b23a2eb29e Add support for configuring opening and closing delimiters for plugins 2023-08-20 03:41:02 +10:00
James Mills 162f433f7c Add support for cgi scripts 2023-04-02 01:02:08 +10:00
James Mills 045940e292 Fix and preserve file permissions when copying raw files (Fixes #15) 2023-04-01 21:18:28 +10:00
James Mills 1fa555ea43 Add zs generate command for generating partial fragments 2023-04-01 10:47:02 +10:00
James Mills 5b116b3f07 Fix getVars() 2023-03-30 22:22:21 +10:00
James Mills 16a58ffa2d Add -v/--var flag for configuring additional variables 2023-03-30 22:11:16 +10:00
James Mills 97f798b5c5 Fix debugability of non-existent plugins or variables in non-production mode 2023-03-30 21:15:08 +10:00
James Mills c8c4ac861a Add source to variables when rendering to support reveal.js and slide decks or re-using the content source 2023-03-29 23:37:20 +10:00
James Mills dfaa5cd490 Fix tests and squelch warning if config file not found 2023-03-27 00:46:09 +10:00
James Mills f64268f9cd Fix anchor ext to use a blank space by default so it can be more easily styled with CSS 2023-03-27 00:29:58 +10:00
James Mills 320cc026ee Fix setting extensions via config 2023-03-26 12:57:17 +10:00
James Mills 40d6f8312a Add support for configurable extensions via -e/--extensions and configuration file 2023-03-26 12:23:23 +10:00
James Mills d889349f2c Add support for -c/--config and .zs/config.yml for default vars 2023-03-22 00:17:14 +10:00
James Mills bfa4160c6c Fix bug in run passing content that was too long as args 2023-03-20 08:38:05 +10:00
James Mills 0608690f72 Add attribute parser option 2023-03-18 23:01:17 +10:00
James Mills 5b82d79c90 Fix tests 2023-03-18 17:40:46 +10:00
James MillsandJames Mills 3e4215b694 Add additional goldmark extensions (#14)
Closes #13

Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com>
Reviewed-on: https://git.mills.io/prologic/zs/pulls/14
2023-03-18 07:23:10 +00:00
James Mills 2bbe9caa0b Fix tests 2023-03-18 13:26:16 +10:00
James Mills 84106842bf Add support for -p/--production global variable 2023-03-18 13:06:33 +10:00
James Mills 8481779221 Add support for rebuilding if .zsignore or .zs/* files change 2023-03-18 11:59:16 +10:00
James Mills fbac4c54b8 Update to use goldmark (Fixes #11) 2023-03-16 17:47:21 +10:00
James Mills 239d26a15a Add support for .zsignore (Fixes #3) 2023-03-12 21:52:14 +10:00
James Mills 26c0bfad0b Add more tests 2023-03-12 21:23:22 +10:00
James Mills 7198656bcd Fix errors filling in variables (Fixes #2) 2023-03-12 17:48:54 +10:00
James Mills 169a8ac62c Add a better set of cli commands using cobra/pflag and add version and help to all commands 2023-03-12 16:34:38 +10:00
James Mills d980980a0b Add support for specifying root driectory for zs serve 2023-03-12 14:24:34 +10:00
James MillsandJames Mills 339de0457c Refactor a bunch of stuff adding zs serve, CI/CD workflows, fixing docs and license (#10)
Fixes #5
Fixes #8
Fixes #9

Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com>
Reviewed-on: https://git.mills.io/prologic/zs/pulls/10
2023-03-12 04:13:53 +00:00
James Mills 70fb47d6ee Fix default PATH for .zs for partials for Go 1.19 changes to LookPath handling 2022-08-14 10:52:15 +10:00
James Mills 2ab171a0d4 Code cleanup 2021-10-29 02:10:15 +10:00
James Mills 40012efba4 Add Markdown extensions to blackfriday 2021-10-23 13:57:19 +10:00
James Mills 25c14c56ab Forked project 2021-09-18 09:32:14 +10:00