Commit Graph

48 Commits

Author SHA1 Message Date
2fd5fccc5b Add button to disable ACE Code Editor (for mobile) 2019-05-16 18:46:02 -07:00
86d5367d8e Fix sticky blog posts not ordering correctly 2019-03-15 14:12:38 -07:00
1821ef60d4 Feature: Ask Me Anything
Implements a Tumblr-style "Ask Me Anything" feature to the blog, with a bit of
automation and niceness:

* The route is at `/ask`
* User can leave their name (Anonymous), email address (if they want to be
  notified when you answer) and ask their question.
* The blog owner is notified about the question via email.
* The owner sees recent pending questions on the `/ask` page.
* Answering a question creates a blog entry and (if the asker left their
  email) notifies the asker to check the blog at the permalink-to-be for the
  new post.

Along with this feature, some changes to the blog application in
general:

* Added support for SQL databases in addition to the JsonDB system
  previously in use for blogs, users, comments, etc.
  * Default uses a SQLite DB at $root/.private/database.sqlite
  * The "Ask Me Anything" feature uses SQLite models instead of JSON.
* Restructure the code layout:
  * Rename the /internal/ package path to /src/
  * Begin to consolidate models into /src/models
2018-12-24 11:50:29 -08:00
517a2ee86b Questions system WIP 2018-12-23 16:18:04 -08:00
eae499c640 Dummy out Events and Contacts for now, shelved for later 2018-12-15 17:17:36 -08:00
5c4f5612f8 Controller docs, RSVP counts, comment integration 2018-05-12 11:48:18 -07:00
a3ba16c9b2 Anonymous contact authentication for events 2018-05-11 21:29:18 -07:00
a166c72cf3 SQLite DB, initial invite flows and UX 2018-05-11 21:28:55 -07:00
345878fabe Contact creation and invite UI 2018-04-30 17:50:39 -07:00
765e80b64d Initial events UI - Creation, editing, viewing 2018-04-29 12:56:37 -07:00
efeb2e934e Fix page count and comment form styling 2018-04-14 09:29:03 -07:00
aca9734b14 More config settings and age gating 2018-04-11 19:34:37 -07:00
532135094c Bootstrap version bump 2018-04-11 18:59:48 -07:00
b7d1661fcd Various tweaks 2018-04-11 18:59:30 -07:00
709e1f9577 Add tumblr-import script to import Tumblr blogs 2018-04-10 22:36:32 -07:00
3b4bd4e978 Various small nice fixes 2018-04-10 19:07:25 -07:00
7fa422e42f Shuffle around packages, fix rophako-import 2018-02-11 16:24:43 -08:00
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
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
eab7dae75b Further simplify template rendering 2018-02-10 13:16:20 -08:00
e393b1880f Move template rendering into sub-package 2018-02-10 10:08:45 -08:00
0ca2ebd874 Bring back the RSS/Atom feeds 2018-02-01 20:14:42 -08:00
9f25d38276 Upgrade to Bootstrap 4 Final 2018-02-01 09:34:28 -08:00
419ae157cc Add account settings page to change passwords 2017-12-23 19:15:50 -08:00
4cc50e86c9 Tweak ACE defaults 2017-12-23 15:37:59 -08:00
9e58456aaa ACE Code Editor for Pages and Blogs 2017-12-23 15:29:38 -08:00
d8254826c2 Add the ACE Code Editor 2017-12-23 15:27:32 -08:00
9eaca9c98b Add admin page editor UX 2017-12-23 14:48:47 -08:00
94cdc916ac Blog tag pages and contact form 2017-12-22 18:34:58 -08:00
d730b4d43c Import wiki pages, render Markdown pages w/ Pygments 2017-12-02 10:47:21 -08:00
88a9908c19 Make the blog index includeable from site index 2017-12-01 08:07:21 -08:00
cd575ffb1e Various small fixes 2017-11-26 19:44:36 -08:00
4a7a87c306 Plain text and HTML emails 2017-11-26 19:05:31 -08:00
527e995c1c Add support for subscribing to comment threads 2017-11-26 18:52:14 -08:00
725437d06f Comment system: add, edit, delete for guests and Admins 2017-11-26 15:53:10 -08:00
ab5430df26 Blog archive page 2017-11-24 13:27:08 -08:00
34d444ab96 Handle drafts and private/unlisted posts 2017-11-24 12:53:13 -08:00
b127c61dd7 Blog post creation, viewing, index listing, editing, deleting 2017-11-24 11:56:32 -08:00
5009065480 Blog edit and preview page 2017-11-19 21:49:19 -08:00
5b051391d6 Remove vue.js 2017-11-19 20:20:46 -08:00
3d4d69decc Sessions, log in-out, app settings GUI 2017-11-15 06:55:15 -08:00
fe84b0c4f1 Init site config DB, login required middleware 2017-11-07 19:48:22 -08:00
fc152d3bde User login and out, sessions and request context 2017-11-07 09:53:02 -08:00
6f330a3e92 Initial form and model layout, user creating/loading 2017-11-07 09:01:02 -08:00
c69dbfebba Add JsonDB and initial Admin Setup POST handler 2017-11-03 09:52:40 -07:00
456cad7a50 Initial "Bluez" default theme and Admin Setup page 2017-10-31 09:42:15 -07:00
0c243c849c Bootstrap 4.0.0 Beta 2017-10-08 11:19:48 -07:00
2966cb2c7f Initial static file router 2017-10-07 21:48:58 -07:00