Commit graph

4 commits

Author SHA1 Message Date
Xe Iaso 0ffce32a1b cmd/web: use tailwind for CSS styles 2023-08-29 10:22:56 -04:00
Xe Iaso 37727362e9 cmd/web: review fixes
* check extensions before content
* explicitly denote enry hack until upstream fixes[1]
* comment each case for the url parts deconstruction trick
* use fname as title when no title exists
* better title detection logic
* kill a random empty line in inline CSS
* rename sp (split) to pathComponents

[1]: https://github.com/go-enry/go-enry/pull/154

Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 18:32:05 +00:00
Xe Iaso a3184dfa46 cmd/web: show fancy posts without metadata
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 17:42:41 +00:00
Xe Iaso 8ca068ac3e cmd/web: optionally render markdown posts in a fancy view
/pastes/{id}/md gets you a fancy formatted view

Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 17:29:01 +00:00