Hacker News new | ask | show | jobs
by reacweb 2810 days ago
I am developping my SSG. For the moment, it is

  for file in *.md ; do
     echo " converting $file"
     pandoc $file -f markdown -t html5 \
        -H templates/header-prod.html \
        -B templates/nav.html \
        -A templates/footer-prod.html \
        --template=./default.html5 \
        -o ../out/${file%.md}.html \
        -s  --data-dir=./ \
        --highlight-style pygments \
        --variable=file:${file%.md}.html
  done
  scp -r ../out/* me@cloud:/var/www/html
Someday, I will improve it for a smarter generation of index.html. For the moment, my struggle is style.css.