News for hackers. Stuff that matters.
Re:Show HN: Static blog generator in about 1 KLOC by Rebelgecko on Saturday October 17, 2020 @06:12PM (#24813816)
Mine is 4 lines, although it would be trivial to make it shorter. Here it is, although I'm actually working on migrating over to Hugo because it has some nice features that would be a pain to implement myself

  for filename in pages_md/*.md; do
   basename=$(basename "$filename" .md)
   pandoc "$filename" -f markdown_github -t html -o "pages/$basename.html"
  done

There are no comments on this comment yet.