A JavaScript/Go project to help with formatting human-readable plaintext "blog posts" into custom html, for a tilde.town webpage
See it here!
- js/zenbu.js - Serves the webpage used to collect the post text file and images, saving, verifying, serving them to the Go converter, and uploading to tilde when done
- go/main.go - Handles the post formatting, keeping a chronological log of all posts, naming appropriately, and compiling all into the HTML index
- This can (currently) only run on a Linux machine, as it makes use of scp to send files to tilde.town
See the wiki page.
See the changelog
- Add support for ul lists
- Do something to help with links (which are not currently handled in any way)
- Less- and greater-than symbols currently break, fix and add way to escape special characters
- Write capability for registering posts under different categories (to be done after appropriate CSS is written), or for different pages
- Maybe split posts under different pages after a certain number (based on the lightweight nature of the page, probably unnecessary)
- Write capability to manage log, delete past entries, etc.
Feel free to make suggestions and open issues, PRs, or anything!
Post HTML adapted from Xkeeper's tilde.town page. Licensed under CC BY 3.0