Commit Graph

11 Commits

Author SHA1 Message Date
d78814b9c9 Tweaks to age-gate middleware
Allow more static files to be loaded: font files like for FontAwesome.
Also allow POST requests, in case you loaded a URL with the override
query parameter so you can leave a comment without being interrupted.
2019-10-22 10:50:51 -07:00
445fffdf2b JSON feed support for the blog cuz why not 2019-08-19 18:30:42 -07:00
82b73f26b4 Fix RSS feed links 2019-08-19 17:50:56 -07:00
77bf2b9dd3 Fix up RSS/Atom feeds 2019-08-19 17:46:44 -07:00
7376947e8a Extract Blog Thumbnails for Archive Page 2019-06-05 16:18:38 -07:00
c556f862e5 Add image uploader to the Edit Blog page 2019-05-16 20:12:47 -07:00
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