Hacker News new | past | comments | ask | show | jobs | submit login

I love it. I've wanted something like this ever since nanoblogger died. Cheers.



Thanks! Check out the themes also: https://t.mkws.sh/

You can replace the bin/mkws script with a Plan9 mk file to get incremental builds:

  #!/usr/local/plan9/bin/mk -f

  URL=//example.com
  SHARE=share
  LANG=en_US.UTF-8

  THEMEFILES=$SHARE/l.upphtml\
          $SHARE/s.uppcss\

  TPLFILES=`{find . ! -name "l.upphtml" -name "*.upphtml" | cut -c3-}
  HTMLFILES=${TPLFILES:%.upphtml=%.html}

  $URL:V: sitemap.xml $HTMLFILES

  %.html:Q: %.upphtml $THEMEFILES
          >&2 echo Making $target
          pp $SHARE/l.upphtml ${target%.html}.upphtml $url > $target

  sitemap.xml:Q: $HTMLFILES $SHARE/sitemap.uppxml
          >&2 echo Making $target
          pp $SHARE/sitemap.uppxml $url > $target

  clean:VQ:
          Removing "$HTMLFILES" sitemap.xml
          rm -f $HTMLFILES sitemap.xml
It's drop in!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: