Commit graph

256 commits

Author SHA1 Message Date
adnano 71931dfa4e config: Tweak variable names 2021-04-11 18:46:57 -04:00
adnano 4ec169afdc Implement static directory support 2021-04-11 17:54:51 -04:00
adnano 5719af8727 dir: Don't index static files 2021-04-11 17:40:11 -04:00
adnano 9edacc1541 config: Implement support for postprocess commands 2021-04-11 17:23:01 -04:00
adnano 749fe58ccb Remove built-in geminiToHTML formatter 2021-04-11 17:13:06 -04:00
adnano a7e8568b1e Allow specifying which task to run 2021-04-11 16:00:29 -04:00
adnano 70795af4c8 Update go-gemini dependency 2021-04-11 15:35:26 -04:00
adnano c966e9f815 config: Create default configuration before parsing 2021-03-20 23:57:18 -04:00
adnano 713c1336fb Switch to other toml library 2021-03-20 23:54:55 -04:00
adnano d30faf0fcd config: Fix crash caused by nil map 2021-03-20 23:46:02 -04:00
adnano 72e9ba2d78 config: Rename task to tasks 2021-03-20 23:44:13 -04:00
adnano feb0c77d66 Add initial implementation of build tasks 2021-03-20 23:17:58 -04:00
adnano f2f4d09146 Update go-gemini dependency 2021-03-20 20:37:32 -04:00
adnano e8b6930d3b Revert "Switch to other toml library"
This reverts commit d7e9f5e7c2.
2021-03-20 20:35:48 -04:00
adnano 6e7575fdc2 config: Remove mediatypes 2021-03-20 16:29:06 -04:00
adnano d7e9f5e7c2 Switch to other toml library 2021-03-20 02:42:05 -04:00
adnano eee2bca75c Rename layouts directory to templates 2021-03-20 02:19:00 -04:00
adnano c7adb5fef1 config: Use toml for configuration 2021-03-20 02:02:38 -04:00
adnano fd187da71d Fix Gemini content output path 2021-03-19 23:44:02 -04:00
adnano c382c296c8 config: Rename urls to url 2021-03-19 23:38:10 -04:00
adnano 59dd1796a0 Update documentation 2021-02-28 12:17:10 -05:00
adnano 1843d0279b Mention that Go 1.16 is required in README.md 2021-02-28 12:14:23 -05:00
adnano 62894400b0 Reorganize example site 2021-02-28 12:07:48 -05:00
adnano 1ff05f49f5 html: Make textToHTML accept an io.Reader
Use gemini.ParseLines to convert the Gemini text to HTML in one pass.
2021-02-27 22:02:45 -05:00
adnano 9154319862 Add Format interface 2021-02-27 21:53:16 -05:00
adnano abfd442ab5 config: Add mediatypes section 2021-02-27 21:45:37 -05:00
adnano 13b9b8c520 page: Don't hardcode .gmi file extension 2021-02-27 21:42:37 -05:00
adnano e3a479f921 Use content, public, and layouts directories
Use content, public, and layouts instead of src, dst, and templates.
2021-02-27 21:41:21 -05:00
adnano 7ee6591e9c Embed built-in templates with embed.FS 2021-02-27 15:56:23 -05:00
adnano 6ab9313c6d Require Go 1.16 2021-02-27 15:34:52 -05:00
adnano f1d0710f95 Add -format flag 2021-02-27 15:34:05 -05:00
adnano 6e8f7cfdaa Bump version in Makefile 2021-01-19 18:57:57 -05:00
adnano 22057adaf1 Fix documentation about site URLs 2020-12-21 16:42:11 -05:00
adnano 08077605ac Improve configuration of multiple URLs 2020-12-21 16:41:05 -05:00
adnano 713f2e33c8 Fix unclosed tags in Atom template 2020-11-27 19:06:38 -05:00
adnano 7a5093b046 Fix template lookup 2020-11-27 18:49:53 -05:00
adnano 943499c3d6 Update README.md 2020-11-27 18:26:36 -05:00
adnano d10b827ac0 Allow specifying multiple site URLs 2020-11-27 18:24:31 -05:00
adnano 9990f10f8e Update documentation 2020-11-25 14:33:07 -05:00
adnano 71f415e54d Add trailing slash to page paths 2020-11-25 14:31:58 -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 7f192dcaba Add default templates 2020-11-24 20:08:31 -05:00
adnano ecde4b8fa5 Add note about Go templates 2020-11-24 20:02:42 -05:00
adnano 43210da6e0 Add note about source directory contents 2020-11-24 19:51:29 -05:00
adnano 5e10f3e430 Add note about site URLs 2020-11-22 16:07:37 -05:00
adnano d628a6e2aa Fix documentation 2020-11-22 15:55:06 -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 491b4637c1 Add example site 2020-11-20 15:06:11 -05:00