parent
559cf8f206
commit
ac72587fcd
@ -1,7 +1,9 @@ |
|||||||
BASEDIR="~/Generator/" |
BASEDIR="/home/silverwizard/Generator" |
||||||
SRC="$BASEDIR/src" |
SRC="$BASEDIR/src" |
||||||
STATIC="$BASEDIR/static" |
STATIC="$BASEDIR/static" |
||||||
TEMPLATES="$BASEDIR/templates" |
TEMPLATES="$BASEDIR/templates" |
||||||
DEST="/var/www/htdocs" |
DEST="$BASEDIR/dest" |
||||||
|
|
||||||
export BASEDIR SRC STATIC TEMPLATES DEST |
TITLE="Am I A Hacker? I've No Idea" |
||||||
|
|
||||||
|
export BASEDIR SRC STATIC TEMPLATES DEST TITLE |
||||||
|
@ -0,0 +1,11 @@ |
|||||||
|
IFS=' |
||||||
|
' |
||||||
|
. ./local.env |
||||||
|
echo '<rss version="2.0">' > $DEST/rss.xml |
||||||
|
printf "\t<channel>\n" > $DEST/rss.xml |
||||||
|
printf "\t\t<title>$TITLE</title>\n" > $DEST/rss.xml |
||||||
|
for file in `find $SRC -type f -name "*.md"` |
||||||
|
do |
||||||
|
stat -f %Sm $file >> $DEST/rss.xml |
||||||
|
done |
||||||
|
echo "</rss>" >> $DEST/rss.xml |
@ -1,3 +0,0 @@ |
|||||||
# This should be new! |
|
||||||
|
|
||||||
Heya Becky and Robo! |
|
@ -1,3 +0,0 @@ |
|||||||
# This is a test |
|
||||||
|
|
||||||
I am trying to create a blogpost - but I don't know what I'm doing |
|
@ -1,3 +1,2 @@ |
|||||||
# I should have a title |
# This is |
||||||
|
also a test |
||||||
I want to do another test |
|
||||||
|
@ -1,4 +1,4 @@ |
|||||||
<html> |
echo "<html>" |
||||||
<link rel="stylesheet" href="style.css"> |
echo '<link rel="stylesheet" href="style.css">' |
||||||
<h1>A Meditation On Hating Security</h1> |
echo "<h1>$TITLE</h1>" |
||||||
<div class="leftcolumn"> |
echo '<div class="leftcolumn">' |
||||||
|
Loading…
Reference in new issue