Commit Graph

5 Commits

Author SHA1 Message Date
86d5367d8e Fix sticky blog posts not ordering correctly 2019-03-15 14:12:38 -07:00
dee7c8eb98 Additional age gate suffixes 2019-01-03 11:36:52 -08:00
87f53c9895 Age Gate: Allow single-page exceptions with ?over18=1 2019-01-01 13:31:01 -08: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
9b938ccff3 Move package from internal to src 2018-12-23 16:21:50 -08:00