fast script
This commit is contained in:
parent
598addf2fe
commit
94bf6b9d08
1
install
1
install
|
@ -2,3 +2,4 @@
|
|||
mkdir -p /rc/bin/g9srv
|
||||
cp rfs blog /rc/bin/g9srv
|
||||
cp gemtohtm /lib/
|
||||
cp webblog /rc/bin/g9srv
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/rc
|
||||
g9srv/webblog -o /usr/web/posts -w /usr/glenda/code/gemsite/
|
||||
|
2
webblog
2
webblog
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue