gensite.sh 318 B

12345678910
  1. #!/bin/bash
  2. for file in pages/*; do
  3. filename="${file%.*}"
  4. markdown -o temp.html -F MKD_AUTOLINK "$file"
  5. cat templates/header.html temp.html templates/footer.html > $filename.html
  6. tidy -config templates/tidy_config.txt $filename.html
  7. rm temp.html
  8. done
  9. mv pages/*.html output/
  10. echo "Script finished"