diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -4,7 +4,11 @@ A small multi-tenant blog host. One Go binary + Postgres. Bloggers log in at `example.com` to manage their blog; each blog is served at `<name>.example.com`. Server-rendered HTML, no JavaScript required, works on old browsers and phones. -- Posts and page intros are written in **Markdown** (sanitized on save). +- Posts and page intros are written in **Markdown** (sanitized on save). Images can be + inserted straight from the editor (file picker, paste or drag-and-drop; with JavaScript + off the file is appended on save). +- **Announcements**: blog-wide notices (next meeting, this month's book, a closure) + shown above or below the posts, or under the menu; each can be hidden without deleting. - Every blog has **pages** (Home, About, News, …); each page holds posts. - **Design** form: background colour/image, fonts, widths, header, menu position, footer. - Changes are live immediately: save, then refresh the blog tab. @@ -95,7 +99,7 @@ Images live in the database, so that one dump is everything. cmd/blogspace/ main (serve | seed | migrate) internal/config/ environment → Config internal/db/ pgx pool + goose migrations (embedded SQL) -internal/store/ models and queries (users, blogs, pages, posts, images) +internal/store/ models and queries (users, blogs, pages, posts, images, sections) internal/auth/ bcrypt, JWT cookie sessions, CSRF tokens internal/markdown/ goldmark + bluemonday internal/slug/ title → slug |
