parent
fb6353a591
commit
58d91e5207
2 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: 'Forgeons !'
|
title: 'Forgeons !'
|
||||||
document-css: 'templates/default.css'
|
lang: 'fr'
|
||||||
---
|
---
|
||||||
|
|
||||||
## Un groupe de travail consacré à la forge libre et *open source* [Forgejo](https://forgejo.org).
|
## Un groupe de travail consacré à la forge libre et *open source* [Forgejo](https://forgejo.org).
|
||||||
|
|
|
@ -12,8 +12,9 @@ convert()
|
||||||
echo "making $filename.html"
|
echo "making $filename.html"
|
||||||
pandoc \
|
pandoc \
|
||||||
-s \
|
-s \
|
||||||
|
--verbose \
|
||||||
--template=templates/default.html \
|
--template=templates/default.html \
|
||||||
--css=templates/default.css \
|
--css=default.css \
|
||||||
../pages/$filename.md \
|
../pages/$filename.md \
|
||||||
-t html > ../dist/$filename.html \
|
-t html > ../dist/$filename.html \
|
||||||
--lua-filter=links-to-html.lua
|
--lua-filter=links-to-html.lua
|
||||||
|
@ -30,6 +31,10 @@ batch()
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Linked files
|
||||||
|
cp templates/default.css ../dist
|
||||||
|
|
||||||
|
# Options
|
||||||
case $1 in
|
case $1 in
|
||||||
convert) shift 1; convert "$@";;
|
convert) shift 1; convert "$@";;
|
||||||
batch) batch ;;
|
batch) batch ;;
|
||||||
|
|
Loading…
Reference in a new issue