easier to rebuild pages/posts now
This commit is contained in:
parent
7ad7b36786
commit
1a6db05745
17
rebuild.sh
Executable file
17
rebuild.sh
Executable file
@ -0,0 +1,17 @@
|
||||
# Because sometimes you just have to rebuild everything
|
||||
rootDir='./_site/'
|
||||
post() {
|
||||
for file in ./markdown/post/*
|
||||
do
|
||||
fileName=$(basename $file)
|
||||
pandoc $file --css style.css -s -o $rootDir/post/${fileName%.*}.html
|
||||
done
|
||||
}
|
||||
|
||||
page() {
|
||||
for file in ./markdown/pages/*
|
||||
do
|
||||
pandoc $file --css style.css -s -o $rootDir/page/${fileName%.*}.html
|
||||
done
|
||||
}
|
||||
"$@"
|
Loading…
Reference in New Issue
Block a user