use pandoc
This commit is contained in:
parent
6ec522997f
commit
58b3ba2502
3
build.sh
3
build.sh
@ -6,7 +6,8 @@ cp -r assets/ dist/
|
|||||||
make_index() {
|
make_index() {
|
||||||
cp templates/index.tmpl.html build/index.html
|
cp templates/index.tmpl.html build/index.html
|
||||||
sed -i 's/<title>/&Home/' build/index.html
|
sed -i 's/<title>/&Home/' build/index.html
|
||||||
sed -i '/<main>/r pages/index.md' build/index.html
|
pandoc pages/index.md > build/index-content.html
|
||||||
|
sed -i '/<main>/r build/index-content.html' build/index.html
|
||||||
cp build/index.html dist/
|
cp build/index.html dist/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user