fast script

This commit is contained in:
Fulton Browne 2021-05-28 15:28:18 +00:00
parent 598addf2fe
commit 94bf6b9d08
3 changed files with 6 additions and 0 deletions

View File

@ -2,3 +2,4 @@
mkdir -p /rc/bin/g9srv
cp rfs blog /rc/bin/g9srv
cp gemtohtm /lib/
cp webblog /rc/bin/g9srv

3
wb Executable file
View File

@ -0,0 +1,3 @@
#!/bin/rc
g9srv/webblog -o /usr/web/posts -w /usr/glenda/code/gemsite/

View File

@ -28,6 +28,8 @@ for(i in $posts){
echo '<link rel="stylesheet" href="/style.css">' > $o'/'index.html
echo '<title>fulton.software blog</title>' >> $o'/'index.html
echo '<h1>Fulton''s blog</h1>' >> $o'/'index.html
for(i in $posts){
name=`{gettitle $i}
echo '<a href="'$i'.html">'$"name'</a> <br>' >> $o'/'index.html