hlfw.ca

hlfw

Download patch

ref: 39194eb8a9f2b61a2238bb678c069f7a1cbc07ba
parent: b774937fc4567c28cbe9bb1db6e1481b552e8587
author: halfwit <me@hlfw.ca>
date: Wed Aug 21 02:05:06 PDT 2024

Add in some tweaks

--- a/common.rc
+++ b/common.rc
@@ -115,6 +115,13 @@
 				font-family: sans-serif;
 				tab-space: 8;
 			}
+
+			@media (prefers-color-scheme: dark){
+				body{
+					background-color: #111;
+					color: #eee;
+				}
+			}
 			h1{
 				font-size: 1.5em;
 				color: #4c4c99;
--- a/config.rc
+++ b/config.rc
@@ -3,7 +3,7 @@
 logo=hlfw.png
 
 intro='
-	<p>Halfwit - main</p>
+	<h1>Code</h1>
 
 	<h2>Repositories</h2>
 '
--- a/gitrules
+++ b/gitrules
@@ -1,6 +1,7 @@
 /index.html					/bin/hlfw/list	/usr/git
 ([^'/]+)/usr.html				/bin/hlfw/usr	/usr/git '\1'
 (/.well-known/acme-challenge/([^'/]+))		/bin/cat		/usr/web/\1
+([^'/]+)/static					/bin/cat		/usr/web/\1
 ([^'/]+)/([^'/]+)/([^'/]+)/info.html		/bin/hlfw/info	/usr/git '\1' '\2' '\3'
 ([^'/]+)/([^'/]+)/([^'/]+)/files.html		/bin/hlfw/files	/usr/git '\1' '\2' '\3'
 ([^'/]+)/([^'/]+)/([^'/]+)/branches.html	/bin/hlfw/branches	/usr/git '\1' '\2' '\3'
--- a/list
+++ b/list
@@ -18,7 +18,7 @@
 
 {
 	prelude '' 'git host'
-	echo '<img src="/static/'$logo'" /><br/>'
+	echo '<img src="/'$logo'" height="200px" width="200px"/><br/>'
 	
 	if(~ $#intro 0)
 		echo '<h2>Repositories</h2><br/>'