server: add RSS feed support

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2022-06-22 23:25:25 -05:00
parent 8f90a0a4d4
commit a1ad26124c
5 changed files with 96 additions and 19 deletions

View file

@ -6,10 +6,10 @@ Prose is a blogging platform written in Go, which I am building to serve my own
Blog posts should be created in the format `title-slug.md`. Work in progress posts should be stored as `WIP-title-slug.md`. Static content should be stored in the `static/` folder, appropriately arranged.
Posts will be served as `/title-slug`, and files like `static/random/file/structure.txt` will be served as `/random/file/structure.txt`. When title slugs and static files conflict, slugs will have higher precdence.
Posts will be served as `/title-slug`, and files like `static/random/file/structure.txt` will be served as `/random/file/structure.txt`. When title slugs and static files conflict, slugs will have higher precdence. An RSS feed of the blog is available at `/rss.xml`.
To start the server:
go run .
Server will be live on port 8080.
Server will be live on port 8080.