Scripts to translate Pelican content to Zola content.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
716 B

#!/bin/bash
# clean targets
rm -r /home/hugo/dev/zola-duniter/content/wiki/
mkdir /home/hugo/dev/zola-duniter/content/wiki/
rm -r /home/hugo/dev/zola-duniter/content/blog/
mkdir /home/hugo/dev/zola-duniter/content/blog/
# apply script
echo "ARTICLES -> BLOG"
./batch_translate.py /home/hugo/dev/duniter_fr/content/articles/ /home/hugo/dev/zola-duniter/content/blog/
echo "PAGES -> WIKI"
./batch_translate.py /home/hugo/dev/duniter_fr/content/pages/ /home/hugo/dev/zola-duniter/content/wiki/
# minor adjustment
mv /home/hugo/dev/zola-duniter/content/wiki/wiki.md /home/hugo/dev/zola-duniter/content/wiki/_index.md
cp /home/hugo/dev/pelican_to_zola/blog_index.md /home/hugo/dev/zola-duniter/content/blog/_index.md