revois la génération de fichier et les titres

This commit is contained in:
Yannick Francois
2020-03-08 01:08:16 +01:00
parent 4be4778b7b
commit c0ed9245cd
316 changed files with 996 additions and 845 deletions
+1 -7
View File
@@ -12,7 +12,7 @@ cat "" > $KEYWORDS
for mdfile in $MARKDOWN_FILES; do
htmlfile="${mdfile%%.*}.html"
if [ ! -f "$htmlfile" ] || [ "$mdfile" != "$htmlfile" ]; then
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
@@ -40,12 +40,6 @@ for line in $(cat $KEYWORDS); do
pandoc --template=lib/template.html -c lib/pandoc.css "$directory/index.md" -o "$directory/index.html"
done
echo "--> copy html files to public dir"
# HTML_FILES=$(find content -name \*.html)
# cp --parents content/*.html public
# (cd content && cp -r --parent . ../public)
# (cd content && find . -name \*.html -exec cp --parents {} ../public \;)
echo "Build atom"
LAST_CHANGES=$(git log --pretty="format:" --name-only | grep "content/posts/20*" | grep ".html" | uniq | tac | head -10)