revois la génération de fichier et les titres
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user