Commit Graph

28 Commits (master)

Author SHA1 Message Date
Noah 76f76df444 Code cleanup 2023-07-01 16:04:02 -07:00
Noah ba053900de Age gate skip header 2023-07-01 15:59:24 -07:00
Noah 777fd85085 Dust off gophertype and fix some bugs
* Add a rate limiter to the login page.
* Fix the CSRF cookie expiring after 24 hours; it now will be a session
  cookie that expires on browser exit so you get a fresh one each visit.
* Remove the dependency on go-bindata and use native Go file embed
* Add documentation
2022-12-05 21:09:06 -08:00
Noah e9e58748b4 Redis cache for Pygmentize + Fragments conflict bugfix 2021-05-31 16:11:01 -07:00
Noah 708a850ecb Bugfix in contact.gohtml 2020-10-28 19:02:54 -07:00
Noah 8f98e72e47 Lazy load blog post images by default
* Post.HTML() and PreviewHTML() both mogrify the resulting HTML code to
  ensure all <img> tags have loading="lazy" unless a loading attribute
  is already present.
2020-04-09 19:16:41 -07:00
Noah 211b7d8318 Multitag frontend update, bug fixes
* Checking the box to reset a post's UpdatedAt to CreatedAt now actually
  does so (removes the "updated at" label from front-end)
* Tagged Posts index now has better header formatting when multi-tags
  are in use.
  * No longer "Tagged as: hello,world,-mars"
  * Now is titled "Tagged Posts" and includes the lists of Tags and Not
    formatted nicely with clickable links.
* Fixes the "Read more..." link always appearing in HTML-type blog
  posts even when they didn't use the `<snip>` tag.
2020-02-26 12:51:51 -08:00
Noah b57dfa9e64 Remove extra tag from questions.gohtml 2020-02-19 16:36:37 -08:00
Noah b1ea864bd3 Trim unnecessary files from ACE editor 2020-02-19 16:24:11 -08:00
Noah 9e0f8c24a0 Bugfix for RSS feeds 2020-02-18 11:04:34 -08:00
Noah c4ec197456 Vendor ACE Code Editor 2020-02-17 21:21:34 -08:00
Noah 4d97fec246 ACE Code Editor and Blog Random-Page Endpoint 2020-02-17 21:21:09 -08:00
Noah b642562792 Blog multi-tag query: whitelist and blacklist
* Can query blog posts by multiple tags now.
* e.g. /tagged/blog,updates,-photos would query all posts that have tags
  "blog" OR "updates" but NOT show any post with tag "photos"
2020-02-17 20:26:30 -08:00
Noah bf86ceb585 Ask Me Anything and Contact Me pages 2020-02-17 19:40:57 -08:00
Noah 5b6712ea97 Blog Archive, RSS Feeds, and Model Cleanup
* Legacy-importer tool updates the DB primary key serial after migrating
  the posts, to be max(posts.id)+1 -- especially important for
  PostgreSQL and MySQL (SQLite3 correctly picked the next ID by
  default?)
* Add blog archive page and RSS, Atom and JSON feeds for the blog.
  URLs are /blog.rss, /blog.atom and /blog.json
2020-02-17 18:10:35 -08:00
Noah 383b5d7591 Age Gate, Legacy kirsle/blog Migration Program
* Add the Age Gate middleware for NSFW sites.
* Cache thumbnail images from blog entries.
* Implement the user-root properly for loading web assets.
2020-02-17 15:50:04 -08:00
Noah c1995efb7a Image uploader on Blog Edit page 2020-02-15 20:34:32 -08:00
Noah 91e3bdaa53 Comment Subscriptions and Recent Comments Page 2020-02-15 19:43:08 -08:00
Noah 87fbdea68b Admin email on new comments + Quick Delete 2020-02-13 22:37:23 -08:00
Noah ceb42aa4d0 Basic Commenting System Implemented
* List comments on a post
* Add comments, with preview
* Users can edit their own comments (EditToken)
* Admin can edit all comments
* Delete comments
* Comment counts on main blog index pages
2020-02-13 22:03:01 -08:00
Noah fd1494cf75 Tags List page 2019-11-26 17:30:31 -08:00
Noah 117542b23c Basic Blog Functionality & Permissions 2019-11-26 16:54:02 -08:00
Noah 0b04dad045 Pretty Logger and Persistent App Settings JSON 2019-11-26 11:17:01 -08:00
Noah 4eef81c07f Sessions, log in and out 2019-11-25 19:55:28 -08:00
Noah 9348050b4c CSRF, Initial Setup and Admin User Creation 2019-11-14 20:58:55 -08:00
Noah c4cc4ba854 Bootstrap Vendored Dependency 2019-11-14 19:04:08 -08:00
Noah f8bb08d2f5 Initial Prototype 2019-11-14 19:03:56 -08:00
Noah 5191afd120 Initial commit 2019-11-05 16:49:18 -08:00