Brian Picciano
6b3933282e
Refactor URL construction a bit
...
BlogHTTPURL and BlogGeminiURL are now used specifically to construct
absolute URLs to their respective endpoints.
1 year ago
Brian Picciano
1cfdac5e8c
Allow url construction to work if blog is under a sub-path
1 year ago
Brian Picciano
c23030733f
Add support for gemtext posts
1 year ago
Brian Picciano
1f3ae665ed
Introduce EDIT and MANAGE methods
...
All admin "index" pages are moved under MANAGE, so that we can have (for
example) and normal "GET /posts" page later which would replace the
current index page, and potentially corresponding pages for the other
categories.
The EDIT method replaces the old `?edit` pattern, which normalizes how
we differentiate page functionality generally.
1 year ago
Brian Picciano
4f01edb923
move src out of srv, clean up default.nix and Makefile
2 years ago
Brian Picciano
c3135306b3
drafts functionality added, needs a publish button still
2 years ago
Brian Picciano
960e33d649
inline css into pages
2 years ago
Brian Picciano
08811a6da7
Replace CSRF token checking with Referer checking
2 years ago
Brian Picciano
159638084e
Fix CSRF loading on static GET pages
2 years ago
Brian Picciano
180575fe4a
Fix post body templates not being parsed correctly
2 years ago
Brian Picciano
01424c7dab
Standardize URL generation across the blog
2 years ago
Brian Picciano
b4ca8853a9
Update http config names
2 years ago
Brian Picciano
af434077ef
Implement image macro for rendering images
2 years ago
Brian Picciano
16cfbd1915
Move static assets to within srv
2 years ago
Brian Picciano
09acb111a2
Rename api package to http
2 years ago
Brian Picciano
75044eef03
Implement edit post page
2 years ago
Brian Picciano
1242be7cfe
Implement posts index page
2 years ago
Brian Picciano
5a99778187
Scatter render.go contents everywhere
2 years ago