Commit Graph

56 Commits (3b4bd4e97826ff97f3f140c00a5737b968ce5e97)

Author SHA1 Message Date
Noah 3b4bd4e978 Various small nice fixes 2018-04-10 19:07:25 -07:00
Noah 7fa422e42f Shuffle around packages, fix rophako-import 2018-02-11 16:24:43 -08:00
Noah f702ad12e0
Merge pull request #4 from kirsle/refactor
Refactor the codebase
2018-02-10 15:50:52 -08:00
Noah d4321b5087 Small bugfixes 2018-02-10 15:16:30 -08:00
Noah c69c14ea09 Controller breakout for blog and comments 2018-02-10 15:07:10 -08:00
Noah eb1880d348 Break out some controllers and move mail to subpackage
Controllers moved into sub-packages:
* Initial setup
* Admin routes
* Auth login/out routes
* Contact
2018-02-10 14:36:21 -08:00
Noah 6d3de7da69 Let me use interface{} for template vars
Since most of the `render.Vars{}` fields were hardcoded/not really
editable for the templates, apart from .Data, this struct is now locked
away in the render subpackage.

End http.HandlerFunc's can then make any arbitrary template data
structure they want to, available inside the templates as `.Data`.
2018-02-10 14:05:41 -08:00
Noah eab7dae75b Further simplify template rendering 2018-02-10 13:16:20 -08:00
Noah f0045ae2cf Move Flash and Redirect responses to subpackage 2018-02-10 11:20:27 -08:00
Noah 60ccaf7b35 Eviscerate the last of the middleware into sub-packages 2018-02-10 11:14:42 -08:00
Noah e393b1880f Move template rendering into sub-package 2018-02-10 10:08:45 -08:00
Noah aabcf59181 Branch markdown into its own subpackage 2018-02-09 19:01:56 -08:00
Noah 3d5147ff4c Shuffle around package directories 2018-02-09 18:46:58 -08:00
Noah 3b3295884c Fix blog posts losing their Created time on edit 2018-02-09 18:25:03 -08:00
Noah e8ca2e408a Descriptions in XML feeds 2018-02-01 20:25:41 -08:00
Noah 0ca2ebd874 Bring back the RSS/Atom feeds 2018-02-01 20:14:42 -08:00
Noah 9f25d38276 Upgrade to Bootstrap 4 Final 2018-02-01 09:34:28 -08:00
Noah 4cfc5bbd3d Merge branch 'master' of github.com:kirsle/blog 2018-01-02 19:19:03 +00:00
Noah 1430c54f0e Legacy /category/ URI 2018-01-02 11:17:57 -08:00
Noah c6e8e3f5e5 Legacy /category/ URI 2018-01-02 11:16:11 -08:00
Noah 946a05c505 Some README Documentation 2017-12-24 13:55:50 -08:00
Noah 22374fb5f8 Log contact form messages to disk, just in case 2017-12-24 12:46:15 -08:00
Noah ce4f0d2f7c Sort comments properly from Rophako ingest 2017-12-24 10:34:10 -08:00
Noah c664c07a74 Sort comments on Rophako ingest 2017-12-24 10:24:42 -08:00
Noah baaf7bcfac Legacy Rophako blog index page 2017-12-23 21:21:26 -08:00
Noah 419ae157cc Add account settings page to change passwords 2017-12-23 19:15:50 -08:00
Noah 00925bb267 Don't allow reconfiguring the site 2017-12-23 18:45:39 -08:00
Noah 98dc41aa0a Fix path errors with JsonDB 2017-12-23 18:17:29 -08:00
Noah 4cc50e86c9 Tweak ACE defaults 2017-12-23 15:37:59 -08:00
Noah 9e58456aaa ACE Code Editor for Pages and Blogs 2017-12-23 15:29:38 -08:00
Noah d8254826c2 Add the ACE Code Editor 2017-12-23 15:27:32 -08:00
Noah 9eaca9c98b Add admin page editor UX 2017-12-23 14:48:47 -08:00
Noah 3f7b800423 Fix toggling on/off of Redis at runtime 2017-12-23 13:32:26 -08:00
Noah c03a010696 Redis caches for JsonDB and Pygments 2017-12-23 13:22:51 -08:00
Noah 94cdc916ac Blog tag pages and contact form 2017-12-22 18:34:58 -08:00
Noah d730b4d43c Import wiki pages, render Markdown pages w/ Pygments 2017-12-02 10:47:21 -08:00
Noah 10071a8301 Add Rophako importer for blog posts and comments 2017-12-01 09:05:16 -08:00
Noah 88a9908c19 Make the blog index includeable from site index 2017-12-01 08:07:21 -08:00
Noah cd575ffb1e Various small fixes 2017-11-26 19:44:36 -08:00
Noah 4a7a87c306 Plain text and HTML emails 2017-11-26 19:05:31 -08:00
Noah 527e995c1c Add support for subscribing to comment threads 2017-11-26 18:52:14 -08:00
Noah 725437d06f Comment system: add, edit, delete for guests and Admins 2017-11-26 15:53:10 -08:00
Noah ab5430df26 Blog archive page 2017-11-24 13:27:08 -08:00
Noah 34d444ab96 Handle drafts and private/unlisted posts 2017-11-24 12:53:13 -08:00
Noah b127c61dd7 Blog post creation, viewing, index listing, editing, deleting 2017-11-24 11:56:32 -08:00
Noah 5009065480 Blog edit and preview page 2017-11-19 21:49:19 -08:00
Noah 5b051391d6 Remove vue.js 2017-11-19 20:20:46 -08:00
Noah 3d4d69decc Sessions, log in-out, app settings GUI 2017-11-15 06:55:15 -08:00
Noah fe84b0c4f1 Init site config DB, login required middleware 2017-11-07 19:48:22 -08:00
Noah fc152d3bde User login and out, sessions and request context 2017-11-07 09:53:02 -08:00