Commit Graph

88 Commits

Author SHA1 Message Date
Brian Picciano
e269b111a1 List existing tags on edit post page 2022-05-21 11:20:45 -06:00
Brian Picciano
3059909deb Publish new posts to mailing list 2022-05-21 11:15:37 -06:00
Brian Picciano
3e67823205 Hide tag picker for now 2022-05-21 10:56:50 -06:00
Brian Picciano
e92f59fc7f Redirect legacy URL path 2022-05-21 10:50:42 -06:00
Brian Picciano
0361b1d4bf Fix annoying underline next to follow button 2022-05-21 10:37:02 -06:00
Brian Picciano
5a58890228 Fix code block formatting and clean up extraneous files 2022-05-21 10:36:50 -06:00
Brian Picciano
79452e7472 Re-arrange routes so that cache only applies to blog routes 2022-05-21 10:18:00 -06:00
Brian Picciano
fb905ad53c Add in-memory cache to GET requests, purges on successful POSTs 2022-05-21 10:04:50 -06:00
Brian Picciano
1de0ab3b72 Define an actual middleware type, use that to set up API routes 2022-05-21 09:17:43 -06:00
Brian Picciano
034342421b Simplify routes by moving formMiddleware to the global level 2022-05-20 19:29:01 -06:00
Brian Picciano
1181af0318 Don't use EDIT method, only POSTs should use alt methods 2022-05-20 19:19:32 -06:00
Brian Picciano
c4692f72e3 Add tag parameter to feed endpoint 2022-05-20 17:51:41 -06:00
Brian Picciano
1f42c5e000 Add tag selector to index 2022-05-20 17:43:47 -06:00
Brian Picciano
47d4787907 Always return results in time desc order from PostStore 2022-05-20 17:31:44 -06:00
Brian Picciano
99f8c1188c Add RSS feed generator 2022-05-20 17:24:52 -06:00
Brian Picciano
b4ca8853a9 Update http config names 2022-05-20 17:04:20 -06:00
Brian Picciano
1ffda21ae3 Implement ratelimit on authentications 2022-05-20 14:54:26 -06:00
Brian Picciano
ae1fa76efc Rename follow.html to follow 2022-05-20 14:32:31 -06:00
Brian Picciano
af434077ef Implement image macro for rendering images 2022-05-20 14:30:26 -06:00
Brian Picciano
16cfbd1915 Move static assets to within srv 2022-05-20 13:37:43 -06:00
Brian Picciano
3cdee89c96 Put post preview behind auth 2022-05-20 11:20:02 -06:00
Brian Picciano
09acb111a2 Rename api package to http 2022-05-20 11:17:31 -06:00
Brian Picciano
f69ed83de7 Add preview button to edit post page 2022-05-20 11:06:21 -06:00
Brian Picciano
2c4b617dde Implement saving of new and edited posts 2022-05-20 10:47:22 -06:00
Brian Picciano
75044eef03 Implement edit post page 2022-05-20 10:13:46 -06:00
Brian Picciano
0bc0204f0b Implement post deleting 2022-05-20 09:33:03 -06:00
Brian Picciano
1242be7cfe Implement posts index page 2022-05-20 08:42:54 -06:00
Brian Picciano
5a99778187 Scatter render.go contents everywhere 2022-05-20 07:59:36 -06:00
Brian Picciano
16f9da05e5 Fix spacing in assets table delete button 2022-05-19 22:47:57 -06:00
Brian Picciano
3664286506 Actually use the auth middleware for assets routes 2022-05-19 22:44:33 -06:00
Brian Picciano
8da42184eb Implement basic auth middleware 2022-05-19 21:35:45 -06:00
Brian Picciano
56530a8a66 Implement asset deletion and fix redirect logic 2022-05-18 10:59:07 -06:00
Brian Picciano
69de76cb32 Add asset file upload form, plus related necessary refactors 2022-05-17 15:54:20 -06:00
Brian Picciano
e406ad6e7c Re-arrange how api endpoints are defined 2022-05-17 15:25:13 -06:00
Brian Picciano
7b7bdcf57a Initial implementation of admin assets page 2022-05-17 14:39:42 -06:00
Brian Picciano
9a67ef9211 Add follow.html to v2 2022-05-17 14:15:38 -06:00
Brian Picciano
e742a2d6d5 Add BlogURL template function 2022-05-17 13:52:18 -06:00
Brian Picciano
0fdece68c0 Add /v2/assets/ handler, with resizing 2022-05-17 13:29:12 -06:00
Brian Picciano
f9d1f664f0 Implement import-asset script 2022-05-17 13:28:56 -06:00
Brian Picciano
4d23325823 Implement cfg.BoolVar method 2022-05-17 11:56:17 -06:00
Brian Picciano
788aba3d0d Fix new index page 2022-05-14 21:35:53 -06:00
Brian Picciano
e24dd6d630 Import posts in dev-shell target 2022-05-14 20:42:43 -06:00
Brian Picciano
e41ff2b897 Implement index handler
This involved re-arranging how templates are being parsed, slightly.
2022-05-14 17:02:30 -06:00
Brian Picciano
4c04177c05 Move template rendering logic into api package 2022-05-14 17:02:16 -06:00
Brian Picciano
dd354bc323 Create srv.dev-shell target in Makefile 2022-05-14 15:22:32 -06:00
Brian Picciano
7e87c09c50 Add /posts handler to api 2022-05-14 15:22:16 -06:00
Brian Picciano
2929b4279c Implement rendering Posts to html 2022-05-14 15:22:10 -06:00
Brian Picciano
a6269d1fe0 Cleanup and fix dev entrypoint target 2022-05-08 16:49:20 -06:00
Brian Picciano
a759fc28f7 Add test target to Makefile to run full integration tests 2022-05-08 16:36:28 -06:00
Brian Picciano
ddb126db17 Move radix config into cfg, use that for integration tests 2022-05-08 16:36:08 -06:00