arrête d'utiliser des bouts de categorie

Je me dit qu'il faudrait trouver une meilleur solution. Est-ce que c'est
un travail éditorial, et donc c'est bon de le faire la main ? Ça me
permettrais de raconter des histoires parallèles...

Ou bien avoir un outil plus complet, et dans ce cas, pourquoi ne pas
prendre un moteur de blog plus classique ?
This commit is contained in:
Yannick Francois
2020-03-29 00:29:25 +01:00
parent decab6db7b
commit 73bc637553
8 changed files with 44 additions and 83 deletions
-15
View File
@@ -1,14 +1,10 @@
#!/bin/sh
#
# Ligne complète pour pandoc:
# pandoc --template=lib/template.html -c lib/pandoc.css -H lib/head.html -B lib/header.html -A lib/footer.html "$mdfile" -o "$htmlfile"
MARKDOWN_FILES=$(find content -name \*.md)
FEED_FILE=content/feed.xml
KEYWORDS=keywords.md
cat "" > $KEYWORDS
echo "## Generate HTML files for each markdown files"
@@ -18,19 +14,8 @@ for mdfile in $MARKDOWN_FILES; do
echo "--> generate with pandoc '$htmlfile' from '$mdfile'"
pandoc --template=lib/template.html -c lib/pandoc.css "$mdfile" -o "$htmlfile"
fi
pandoc --template=lib/extract-keywords.md "$mdfile" >> $KEYWORDS
done
echo "## END"
echo "## Build keywords pages"
python build_theme_index.py
if [ ! -f "$htmlfile" ] || [ "$htmlfile" -ot "$mdfile" ]; then
echo "--> generate with pandoc '$htmlfile' from '$mdfile'"
pandoc --template=lib/template.html -c lib/pandoc.css "$mdfile" -o "$htmlfile"
fi
echo "## END"
exit 0