Add hashover capabilities to boomercms
This commit is contained in:
parent
6ab4e4f2df
commit
11168325ab
11
generate.sh
11
generate.sh
|
|
@ -13,6 +13,16 @@ DateStamp() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HashOver() {
|
||||||
|
sed -i '$ d' $1
|
||||||
|
echo "<div id=\"hashover\"></div>" >> $1
|
||||||
|
echo "<script type=\"text/javascript\" src=\"../../../hashover/comments.php\"></script>" >> $1
|
||||||
|
echo "<noscript>You must have javascript enabled for comments.</noscript>" >> $1
|
||||||
|
echo "</html>" >> $1
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
# CAT comes from settings.sh
|
# CAT comes from settings.sh
|
||||||
GetCategory() {
|
GetCategory() {
|
||||||
USECATEGORY=$1
|
USECATEGORY=$1
|
||||||
|
|
@ -87,6 +97,7 @@ for f in posts/*/*/*
|
||||||
groff -ms -mwww -T html $f > $GENERATED
|
groff -ms -mwww -T html $f > $GENERATED
|
||||||
#groff -ms -mwww -T html $f > "web/"$(dirname $f)"/"$(basename $f .groff).html
|
#groff -ms -mwww -T html $f > "web/"$(dirname $f)"/"$(basename $f .groff).html
|
||||||
|
|
||||||
|
HashOver $GENERATED
|
||||||
DateStamp $GENERATED "$(git log -1 --date=format:'%Y-%m-%d %H:%M:%S' -- $f | tail -n3 | head -n1)"
|
DateStamp $GENERATED "$(git log -1 --date=format:'%Y-%m-%d %H:%M:%S' -- $f | tail -n3 | head -n1)"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue