repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
1fd7bea
parent
6b29e77
author
Eric Bower
date
2024-03-26 21:11:31 +0000 UTC
fix(prose): add smol.css route
3 files changed,  +3, -4
M db/postgres/storage.go
+1, -2
 1@@ -1248,9 +1248,8 @@ func (me *PsqlDB) insertAliasesForPost(tx *sql.Tx, aliases []string, postID stri
 2 		"rss.xml",
 3 		"atom.xml",
 4 		"feed.xml",
 5-		"styles.css",
 6+		"smol.css",
 7 		"main.css",
 8-		"prose.css",
 9 		"syntax.css",
10 		"card.png",
11 		"favicon-16x16.png",
M pastes/api.go
+1, -1
1@@ -296,7 +296,7 @@ func serveFile(file string, contentType string) http.HandlerFunc {
2 func createStaticRoutes() []shared.Route {
3 	return []shared.Route{
4 		shared.NewRoute("GET", "/main.css", serveFile("main.css", "text/css")),
5-		shared.NewRoute("GET", "/custom.css", serveFile("custom.css", "text/css")),
6+		shared.NewRoute("GET", "/smol.css", serveFile("smol.css", "text/css")),
7 		shared.NewRoute("GET", "/syntax.css", serveFile("syntax.css", "text/css")),
8 		shared.NewRoute("GET", "/card.png", serveFile("card.png", "image/png")),
9 		shared.NewRoute("GET", "/favicon-16x16.png", serveFile("favicon-16x16.png", "image/png")),
M prose/api.go
+1, -1
1@@ -828,7 +828,7 @@ func serveFile(file string, contentType string) http.HandlerFunc {
2 func createStaticRoutes() []shared.Route {
3 	return []shared.Route{
4 		shared.NewRoute("GET", "/main.css", serveFile("main.css", "text/css")),
5-		shared.NewRoute("GET", "/prose.css", serveFile("prose.css", "text/css")),
6+		shared.NewRoute("GET", "/smol.css", serveFile("smol.css", "text/css")),
7 		shared.NewRoute("GET", "/syntax.css", serveFile("syntax.css", "text/css")),
8 		shared.NewRoute("GET", "/card.png", serveFile("card.png", "image/png")),
9 		shared.NewRoute("GET", "/favicon-16x16.png", serveFile("favicon-16x16.png", "image/png")),