shithub: shithub

Download patch

ref: 28fb8ec96341a7523c9c2e3b51c80ebe1a56cb0d
parent: 1fabeb8473f2c92540e4b0e1e9c5208d1bb00aac
author: phil9 <telephil9@gmail.com>
date: Thu Oct 28 09:56:32 EDT 2021

make repo list intro text configurable

	the intro text above the repositories list on the home page
	is now configurable through the `intro` variable.

--- a/config.rc
+++ b/config.rc
@@ -2,3 +2,25 @@
 host=shithub.us
 logo=shithub.png
 
+intro='
+	<p>Shithub is a site for hosting git repositories. It is
+	running on <a href="https://orib.dev/git9.html">git9</a>,
+	hosted on <a href=http://9front.org>9front</a>.</p>
+
+	<p>To get an account, or set up a group project email
+	<a href="mailto:ori@eigenstate.org">Ori Bernstein &lt;ori@eigenstate.org&gt;</a>.
+	</p>
+
+	<p>To get started using shithub, read our <a href="/static/guide.html">
+	user guide</a></p>
+	
+	<p>Shithub is a community service, written by people who
+	avoid browsers. As a result, the web interface is a work
+	in progress. Take a look at
+	<a href="/static/plots.html">what we want</a>.
+	</p>
+
+	<h2>Repositories</h2>
+	A mirror is available at <a href="http://git.pmikkelsen.com">pmikkelsens</a>
+	<br/>
+'
--- a/list
+++ b/list
@@ -10,30 +10,12 @@
 '
 
 prelude '' 'the fragrant git host'
-echo '	<img src="/static/'$logo'" />
-	<br/>
+echo '<img src="/static/'$logo'" /><br/>'
 
-	<p>Shithub is a site for hosting git repositories. It is
-	running on <a href="https://orib.dev/git9.html">git9</a>,
-	hosted on <a href=http://9front.org>9front</a>.</p>
-
-	<p>To get an account, or set up a group project email
-	<a href="mailto:ori@eigenstate.org">Ori Bernstein &lt;ori@eigenstate.org&gt;</a>.
-	</p>
-
-	<p>To get started using shithub, read our <a href="/static/guide.html">
-	user guide</a></p>
-	
-	<p>Shithub is a community service, written by people who
-	avoid browsers. As a result, the web interface is a work
-	in progress. Take a look at
-	<a href="/static/plots.html">what we want</a>.
-	</p>
-
-'
-echo '	<h2>Repositories</h2>
-	A mirror is available at <a href="http://git.pmikkelsen.com">pmikkelsens</a>
-	<br/>'
+if(~ $#intro 0)
+	echo '<h2>Repositories</h2><br/>'
+if not
+	echo $intro
 
 udir=()
 for(repo in `$nl{ls */}){