repos / pico

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

commit
5991887
parent
e7ad62b
author
Eric Bower
date
2023-09-12 03:12:26 +0000 UTC
design(pastes): max-width 1025px
2 files changed,  +2, -0
M pastes/api.go
+1, -0
1@@ -324,6 +324,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", "/syntax.css", serveFile("syntax.css", "text/css")),
7 		shared.NewRoute("GET", "/card.png", serveFile("card.png", "image/png")),
8 		shared.NewRoute("GET", "/favicon-16x16.png", serveFile("favicon-16x16.png", "image/png")),
M pastes/html/base.layout.tmpl
+1, -0
1@@ -12,6 +12,7 @@
2         {{template "meta" .}}
3 
4         <link rel="stylesheet" href="/main.css" />
5+        <link rel="stylesheet" href="/custom.css" />
6     </head>
7     <body {{template "attrs" .}}>{{template "body" .}}</body>
8 </html>