Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-01-14 | Changed copyright year and version number | Carlos | |
2016-01-11 | fix: allow field splitting on tags_with_posts call | Martijn Dekker | |
Quoted one too many there. | |||
2016-01-11 | more robust parsing of 'ls' using 'read' | Martijn Dekker | |
* Iterating through 'ls' output using 'for' is very brittle; it relies on word splitting and globbing can also mess it up. It's best to use globs directly, but if using 'ls' cannot be avoided, e.g. if you need to sort by date, at least we can use 'IFS= read -r $i' to read from a here-document filled with the 'ls' output, which leaves everything in file names intact except newlines. * Other minor cleanups. | |||
2016-01-11 | Code cleanups: quoting, redirection, string handling | Martijn Dekker | |
- Fix lots of problems with convoluted and broken quoting techniques. - Group code blocks for redirection into a file rather than doing a separate additive redirect for each command. - Replace strings using bash parameter substitution rather than piping 'echo' through 'sed', resulting in a faster script. | |||
2016-01-11 | More correct and effective use of arrays | Martijn Dekker | |
2016-01-10 | Consistent use of [[ and (( instead of [ | Martijn Dekker | |
Another minor code cleanup. Within [[ ... ]] and (( ... )) (but not [ ... ]) there is a different shell parsing context in which field splitting (a.k.a. word splitting) and pathname expansion (a.k.a. filename globbing) don't apply, so consistently use '[[' (and '((' for arithmetics) instead of '[' and remove unnecessary quotes. Since '[[ x == y]]' does 'case'-like glob pattern matching on 'y', the quotes to the right of '==' need to be kept for variables or glob characters, except if a glob pattern is wanted. | |||
2016-01-10 | Remove unnecessary quotes from scalar assignments | Martijn Dekker | |
Substitutions (variables, command substitutions, etc.) directly assigned to a scalar variable don't need to be quoted, as field splitting and globbing don't apply in that context. Removing superfluous quotes makes the code look a bit cleaner. | |||
2015-12-21 | topsy is kill | Carlos | |
2015-09-23 | Shellcheck. Fix #78 | Carlos | |
2015-09-02 | little changes in css to adapt width to screen | David Mateos | |
width in px changed by percentage in main.css and meta tag viewport added. | |||
2015-07-11 | fixed bug where drafts were appended a random postfix after re-editing | Carlos | |
2015-05-09 | Fixes #70 | Enneka | |
2015-03-09 | Close #72 | Carlos Fenollosa | |
2015-02-19 | Fix #71 | Carlos Fenollosa | |
2014-10-05 | fix #59 | Carlos Fenollosa | |
2014-09-15 | properly quote twitter cards | Carlos Fenollosa | |
2014-09-15 | Twitter cards. Fixes #36 | Carlos Fenollosa | |
2014-09-12 | changed hardcoded /bin/ paths | Carlos Fenollosa | |
2014-09-01 | Close #61 #57 | Carlos Fenollosa | |
2014-08-19 | fix #65 | Carlos Fenollosa | |
2014-07-18 | updated twitter count api | Carlos Fenollosa | |
2014-07-17 | Now the tweet count links to Topsy | Carlos Fenollosa | |
2014-07-11 | Fix for #60 | Carlos Fenollosa | |
2014-07-07 | Twitter count now links to search results | Carlos Fenollosa | |
2014-07-07 | Cookieless twitter option | Carlos Fenollosa | |
2014-07-03 | Hide warning message in sed | Carlos Fenollosa | |
2014-06-30 | Sed error on mac | Carlos Fenollosa | |
2014-06-30 | Sed error on mac | Carlos Fenollosa | |
2014-06-30 | Sed error on mac | Carlos Fenollosa | |
2014-06-30 | Sed error on mac | Carlos Fenollosa | |
2014-06-30 | Sed error on mac | Carlos Fenollosa | |
2014-06-30 | Fixed #56 | Carlos Fenollosa | |
2014-06-30 | Manual fix for #54 | Carlos Fenollosa | |
2014-06-28 | suppress error messages and don't enter for loop when no tag files exist | Alexey Shpakovsky | |
2014-06-28 | don't invoke sed when no tag given | Alexey Shpakovsky | |
the bug was that sed was expecting file content on stdin when didn't receive any filename, and script was "frozen" when someone tried to edit a post without any tags. | |||
2014-06-27 | Updated version and contributors | Carlos Fenollosa | |
2014-06-27 | Merge pull request #53 from Lex-2008/small-fixes/4 | Carlos Fenollosa | |
Small fixes/4 | |||
2014-06-27 | Merge pull request #52 from Lex-2008/rebuild-less-tags | Carlos Fenollosa | |
Rebuild less tags | |||
2014-06-26 | help text | Alexey Shpakovsky | |
2014-06-26 | use file extension when posting with `bb.sh post file.ext` | Alexey Shpakovsky | |
but let users override it with `bb.sh post -html file.md` | |||
2014-06-26 | use markdown by default (if available) when posting with `bb.sh post` | Alexey Shpakovsky | |
2014-06-26 | Don't ask for preview - just show URL for preview | Alexey Shpakovsky | |
2014-06-26 | fix typos in comments | Alexey Shpakovsky | |
2014-06-26 | proper check for empty variable | Alexey Shpakovsky | |
2014-06-25 | clean_filename in RSS links | Alexey Shpakovsky | |
2014-06-25 | don't rebuild tags if they were not involved at all | Alexey Shpakovsky | |
(otherwise posts_with_tags would endlessly freeze) | |||
2014-06-24 | use new functions | Alexey Shpakovsky | |
also bugfix: leave only unique filenames in rebuild_tags() | |||
2014-06-24 | posts_with_tags() to list all posts referenced by several tag files | Alexey Shpakovsky | |
2014-06-24 | tags_in_post() to list all tags referenced in one post file | Alexey Shpakovsky | |
2014-06-24 | make rebuild_tags() optionally accept 2 lists (of filenames and tags) | Alexey Shpakovsky | |