ttbp/README.md

46 lines
1.9 KiB
Markdown
Raw Normal View History

2016-05-02 03:50:41 +00:00
a command-line based blogging platform running on tilde.town
to use, run `~endorphant/bin/ttbp` while logged in to tilde.town
2016-05-15 06:53:50 +00:00
you can also try `~endorphant/bin/ttbp-beta` for a more unstable, bleeding-edge
experience.
2016-05-15 07:09:15 +00:00
### writing entries
entries are recorded as plaintext files in your ~/.ttbp/entries
directory. you can edit them there directly, or fix old entries, or
delete entries.
*warning*: changing old entries might cause strange things to
happen with timestamps. the main program looks at the filename
first for setting the date, then the last modified time to sort
recent posts. it expects YYYMMDD.txt as the filename; anything else
won't show up as a valid entry. yes, this means you can post things out
of date order by creating files with any date you want.
2016-05-15 06:53:50 +00:00
2016-05-15 07:09:15 +00:00
#### general entry-writing notes
* you can use [markdown](https://daringfireball.net/projects/markdown/syntax)
2016-05-15 06:53:50 +00:00
* you can use html
* you can also put things between `<!-- comments -->` to have them show up
in the feed but not render in a browser (but people can still read
them with view-source)
2016-05-15 07:09:15 +00:00
### changing your page layout
you can modify how your blog looks by editing the stylesheet or
header and footer files. the program sets you up with basic
default. if you break your page somehow, you can force the program to
regenerate your configuration by deleting your ~/.ttbp directory entirely. **you might want to back up your ~/.ttbp/entries directory before you do this.**
* to modify your stylesheet, edit your ~/.ttbp/config/style.css
* (future feature: having multiple stylesheets you can select)
2016-05-15 07:09:15 +00:00
* to modify the page header, edit your ~/.ttbp/config/header.txt
2016-05-15 07:11:51 +00:00
* you might note that there's a place marked off in the default header where you can safely put custom HTML elements!
2016-05-15 07:09:15 +00:00
* to modify the page footer, edit your ~/.ttbp/config/footer.txt
2016-05-15 06:53:50 +00:00
2016-05-15 07:11:51 +00:00
### general tips
2016-05-15 06:53:50 +00:00
2016-05-15 07:09:15 +00:00
* add `alias ttbp="~endorphant/bin/ttbp"` to your .bash_aliases for fewer keystrokes