shithub: sirjofri_de

Download patch

ref: dd409c1d4465c296f11e2db92ecd5121403d4dcd
parent: 293cc763486c34157db410b1f77421fcd03ed555
author: sirjofri <sirjofri@sirjofri.de>
date: Fri May 22 09:10:13 EDT 2020

adds mkblog, new blog post

diff: cannot open b/pub/changeblog/2020-05-22//null: file does not exist: 'b/pub/changeblog/2020-05-22//null'
--- /dev/null
+++ b/changeblog/2020-05-22.ht
@@ -1,0 +1,10 @@
+<article>
+<header>
+<h2>I use 9front</h2>
+</header>
+<p>Today I want to share with you, that I use the plan9 distribution '9front' as my main computer.</p>
+<p>Of course there are things that are almost impossible to do there, for example: all gamedev related stuff. This is of course an issue, because I am a game developer. I still have my windows machine with relevant tools, so I can still fiddle around with those complex things.</p>
+<p>For gaming I also use my windows machine or some game console. Yes, there are a few games on plan9 systems.</p>
+<p>Also most online services use javascript and heavy styling of webpages, so I also use a modern computer with a modern browser. Mothra is fine for doing basic research stuff, but in 2020 it's almost impossible to actually do things on the web.</p>
+<p>Anyways, let me tell you that I don't really miss anything on plan9. I can write documents, check my email stuff, chat with people, and step by step it becomes more usable. The community is helpful and provides more applications. The system runs stable, the user interface is consistent and good to look at. Colors don't jump in your eye and want to kill you and there's catclock(1), our friendly companion.</p>
+</article>
--- /dev/null
+++ b/changeblog/mkblog
@@ -1,0 +1,10 @@
+#!/bin/rc
+
+cat <<EOF > `{date -i}^.ht
+<article>
+<header>
+<h2>$*</h2>
+</header>
+<p></p>
+</article>
+EOF
--- a/mkfile
+++ b/mkfile
@@ -1,6 +1,9 @@
 PATHS=`{ls *.ht */*.ht | sed -e 's/\.ht$//g' | grep -v 'index'}
 OBJECTS=`{echo 'pub/'^$PATHS^'/index.html'}
 
+nl='
+'
+
 prepare:QV: changeblog.ht
 	echo 'Prepare complete'
 	mk build
@@ -8,15 +11,16 @@
 build:QV: $OBJECTS pub/index.html
 	echo 'Build complete'
 
-changeblog.ht:Q:
+changeblog.ht:QV:
 	echo '<section>
 	<header>
 	<h2>all articles</h2>
 	</header>
 	<ul>' > $target
-	obs=`{basename `{ls changeblog/*.ht | sed -e 's/\.ht$//g'}}
+	obs=`{ls changeblog/*.ht | sed -e 's/\.ht$//g' -e 's:changeblog/::g'}
 	for(OB in $obs){
-		echo '<li><a href="/changeblog/'^$OB^'/">'$OB'</a></li>' >> $target
+		OBN=`"{sed -n '/h2/s:</?h2>::gp' changeblog/^$OB^.ht | tr -d $nl}
+		echo '<li><a href="/changeblog/'^$OB^'/">'$OB': '$OBN'</a></li>' >> $target
 	}
 	echo '</ul>
 	</section>' >> $target
diff -u a/pub/changeblog/index.html b/pub/changeblog/index.html
--- a/pub/changeblog/index.html
+++ b/pub/changeblog/index.html
@@ -28,7 +28,8 @@
 <h2>all articles</h2>
 </header>
 <ul>
-<li><a href="/changeblog/2020-01-10/">2020-01-10</a></li>
+<li><a href="/changeblog/2020-01-10/">2020-01-10: Revived</a></li>
+<li><a href="/changeblog/2020-05-22/">2020-05-22: Revived</a></li>
 </ul>
 </section>
 </main>
diff -u a/pub/changeblog/index.html b/pub/changeblog/index.html
--- a/pub/changeblog/index.html
+++ b/pub/changeblog/index.html
@@ -28,7 +28,8 @@
 <h2>all articles</h2>
 </header>
 <ul>
-<li><a href="/changeblog/2020-01-10/">2020-01-10</a></li>
+<li><a href="/changeblog/2020-01-10/">2020-01-10: Revived</a></li>
+<li><a href="/changeblog/2020-05-22/">2020-05-22: Revived</a></li>
 </ul>
 </section>
 </main>
--- /dev/null
+++ b/pub/changeblog/2020-05-22/index.html
@@ -1,0 +1,46 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>sirjofri • changeblog/2020-05-22</title>
+<style type="text/css">
+body {
+	font-family: sans-serif;
+	max-width: 960px;
+	margin: auto;
+	padding: 10px;
+}
+</style>
+</head>
+<body>
+<header>
+<h1>changeblog/2020-05-22</h1>
+<nav>
+<a href="/">start</a> •
+<a href="/changeblog/">changeblog</a> •
+<a href="/imprint/">imprint</a>
+</nav>
+</header>
+<main>
+<article>
+<header>
+<h2>I use 9front</h2>
+</header>
+<p>Today I want to share with you, that I use the plan9 distribution '9front' as my main computer.</p>
+<p>Of course there are things that are almost impossible to do there, for example: all gamedev related stuff. This is of course an issue, because I am a game developer. I still have my windows machine with relevant tools, so I can still fiddle around with those complex things.</p>
+<p>For gaming I also use my windows machine or some game console. Yes, there are a few games on plan9 systems.</p>
+<p>Also most online services use javascript and heavy styling of webpages, so I also use a modern computer with a modern browser. Mothra is fine for doing basic research stuff, but in 2020 it's almost impossible to actually do things on the web.</p>
+<p>Anyways, let me tell you that I don't really miss anything on plan9. I can write documents, check my email stuff, chat with people, and step by step it becomes more usable. The community is helpful and provides more applications. The system runs stable, the user interface is consistent and good to look at. Colors don't jump in your eye and want to kill you and there's catclock(1), our friendly companion.</p>
+</article>
+</main>
+<hr>
+<footer>
+<a href="/">start</a> •
+<a href="/changeblog/">changeblog</a> •
+<a href="/imprint/">imprint (german)</a>
+<br>
+© Copyright 2020 sirjofri
+</footer>
+</body>
+</html>
--- a/pub/changeblog/index.html
+++ b/pub/changeblog/index.html
@@ -28,7 +28,8 @@
 <h2>all articles</h2>
 </header>
 <ul>
-<li><a href="/changeblog/2020-01-10/">2020-01-10</a></li>
+<li><a href="/changeblog/2020-01-10/">2020-01-10: Revived</a></li>
+<li><a href="/changeblog/2020-05-22/">2020-05-22: Revived</a></li>
 </ul>
 </section>
 </main>