gemini-capsule

My gemini capsule
git clone git://jb55.com/gemini-capsule
Log | Files | Refs

toweb (290B)


      1 #!/usr/bin/env bash
      2 
      3 set -eou pipefail
      4 
      5 project=${1%.*}
      6 
      7 (
      8 cat <<EOF
      9 ---
     10 title: ${project}
     11 ---
     12 EOF
     13 
     14 gmi2md "$1" 
     15 ) > "${project}.md"
     16 
     17 
     18 mkdir -p $project
     19 pandoc -s -t html "${project}.md" -o - | grep -v -e '<header' -e 'header/>' -e 'class="title"' > ${project}/index.html
     20 
     21 rm ${project}.md