more utility from make script
This commit is contained in:
parent
4f936e990a
commit
7bac76170f
18
make.sh
18
make.sh
@ -11,15 +11,12 @@ post() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# mainly to create new post files
|
updatestyle() {
|
||||||
writep() {
|
# make sure that all sub styles are kept up to date with the root stylesheet
|
||||||
if [ -z $1 ]
|
cp style.css ./page/bstyle.css
|
||||||
then
|
sed -i 's/./fonts/../fonts//g' ./page/bstyle.css
|
||||||
echo 'No filename given'
|
cp style.css ./post/bstyle.css
|
||||||
exit 0
|
sed -i 's/./fonts/../fonts//g' ./post/bstyle.css
|
||||||
fi
|
|
||||||
cp ./markdown/template.md ./markdown/post/$1
|
|
||||||
vim -c "Goyo" ./markdown/post/$1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
page() {
|
page() {
|
||||||
@ -34,7 +31,10 @@ page() {
|
|||||||
|
|
||||||
# literally just updates the index file nothing else
|
# literally just updates the index file nothing else
|
||||||
index() {
|
index() {
|
||||||
|
# base index file
|
||||||
pandoc ./markdown/index.md --css style.css -s -o index.html # typing succs
|
pandoc ./markdown/index.md --css style.css -s -o index.html # typing succs
|
||||||
|
# next we inject the navbar html stuff
|
||||||
|
sed -i '7r ./templates/navbar.html' index.html
|
||||||
}
|
}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
|
Loading…
Reference in New Issue
Block a user