главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-03Merge remote-tracking branch 'keep-timestamp-patch/rm_extension_list_tags'Tessa L.
2024-11-03Merge remote-tracking branch ↵Tessa L.
'keep-timestamp-patch/keep-original-timestamp-when-regenerating-blog'
2023-02-26Keeps post original timestamp when regeneration all_posts and index page.Guilherme Garcia
2023-01-03Merge branch 'master' into masterDmitri Smirnov
2022-03-26Link to wiki in the READMECarlos Fenollosa
2022-01-28Remove .html extension from list of tags in terminalGuilherme Garcia
2021-11-04Bumped version to 2.10Carlos Fenollosa
2021-11-04Added support for configuring a Twitter Card default imageCarlos Fenollosa
2020-05-10New feature: provides specific content ONLY on the index fileCarlos Fenollosa
2019-09-01fixed head before sedCarlos Fenollosa
2018-07-14Add missing quoteDknight
2018-07-13Make HTML5 compatibleDknight
2017-01-03Merge pull request #124 from thalios1973/feat/pandoc-test-fixCarlos Fenollosa
feat/pandoc-test-fix
2017-01-03Merge pull request #125 from thalios1973/feat/body-end-fileCarlos Fenollosa
Added ability to include custom code just before the </body> tag.
2016-12-29Added ability to include custom code just before the </body> tag. ↵Mike Gauthier
body_end_file global config variable added.
2016-12-29Added additional check that will allow the use of pandoc without the ↵Mike Gauthier
--strict flag or 'hsmarkdown' hack.
2016-10-24README formattingCarlos Fenollosa
2016-10-24Support for static, not managed by bashblog html files. Close #92Carlos Fenollosa
2016-10-24Deleted the now defunct Twitter JSON API for share count. Fix #117Carlos Fenollosa
2016-10-24bump version to 2.8Carlos Fenollosa
2016-10-24Revert changes in #116Carlos Fenollosa
2016-10-24Merge branch 'master' of github.com:cfenollosa/bashblogCarlos Fenollosa
2016-10-24Better error message for vim. Close #112Carlos Fenollosa
2016-10-24support Markdown.pl in bashblog folder. Close #113Carlos Fenollosa
2016-10-24Slavic language support, thanks to Tomasz JadowskiCarlos Fenollosa
2016-10-24Revert tag management from #116Carlos Fenollosa
2016-10-24Better error message for $EDITOR. Close #112Carlos Fenollosa
2016-10-24support Markdown.pl in bashblog folder. Close #113Carlos Fenollosa
2016-10-24Merge pull request #116 from McDutchie/masterCarlos Fenollosa
More code refactoring. Limit word splitting and disable globbing by default.
2016-10-24Slavic language support, thanks to Tomasz JadowskiCarlos Fenollosa
2016-09-07tags_in_post(): bugfix for non-GNU 'sed'Martijn Dekker
The 'sed' script in tags_in_post() used a GNU-specific feature, `\+`. This became unnecessary anyway after previous edits, so remove it. Also replace whitespace-comma-whitespace by newline directly instead of doing an intermediary replace.
2016-09-06Fix renaming using 'bb.sh edit -n'. Suppress 'which' errmsg.Martijn Dekker
edit(): The -n functionality (to rename files according to new title) was broken. After renaming, files were accessed by the old name and not found, or empty files were recreated under the old name, or both. Fixes: - Move 'touch' commands for restoring time stamps to more opportune places. - When renaming, save old file name to exclude it from $relevant_posts. global_variables(): suppress GNU 'which' error message on setting markdown_bin.
2016-09-06Merge remote-tracking branch 'upstream/master'Martijn Dekker
Resolve minor editing 2.6-to-2.7 editing conflict in bb.sh
2016-09-06More code refactoring. Limit word splitting and disable globbing by default.Martijn Dekker
- Globally, now do word splitting (IFS) only on newline (which also makes "$*" expand with newline separator instead of space). - Disable globbing (pathmame expansion), to be re-enabled locally using 'set +f' where needed (typically in a subshell). These changes help eliminate unexpected snags and security vulnerabilities in case someone forgets to quote a variable somewhere. They should also make the code "just work" with spaces and other special characters in file names and tags (as long as they're not newline characters, but that can't happen with regular use of the script as the newline is the separator). This means that, as of this change, editing or completely emptying the convert_filename filter should no longer pose any problems as far as bb.sh is concerned. The changes to adapt the code to the above are mainly: - Now that we do word splitting on newline only, we can go back to iterating through files in a "for" loop instead of using "read" with a here-document, which is more readable. However, to enable globbing locally, a technique adaptation is needed, like: for file in $(set +f; printf '%s\n' *.html) or for file in $(set +f; ls -t -- *.html) # sort by date, newest first Given IFS=$'\n' and globbing disabled globally, this technique is robust for all special characters in file names except for newlines. - invoke_editor() function replaces direct $EDITOR calls, because we need to locally word-split $EDITOR on spaces in case it contains arguments. - parse_file(): rewrite tag parsing to handle possible spaces in tags - tags_in_post(): output line-separated instead of space-separated tags; further adjust sed script to handle possible spaces in tags - rebuild_tags(): this function was refactored to use an array internally. Instead of two combined strings, it now takes HTML files and tags as separate arguments, separated by a single "--tag" argument. This allows for spaces and other special characters in both file names and tags. (See also commit a674ec5, which started this but didn't finish it).
2016-04-26Update README.mdCarlos Fenollosa
2016-04-26simplified a couple commands and removed debug echosCarlos Fenollosa
2016-04-26Store post dates in html comment. Sync those with filesystem. Closes #96Carlos Fenollosa
2016-04-25avoid the user mistakingly using 'edit <draft>' instead of 'post <draft>'Carlos Fenollosa
2016-04-25Merge pull request #105 from louwers/patch-1Carlos Fenollosa
Added support for images and made author field optional
2016-04-13Added support for images and made author field optionalBart
One LOC per feature, hope you think it's worth it. http://imgur.com/YcBp29ql.png
2016-03-09Merge remote-tracking branch 'upstream/master'Martijn Dekker
2016-03-09rebuild_tags(): use array for more robust file handlingMartijn Dekker
2016-03-02Merge branch 'master' of github.com:cfenollosa/bashblogCarlos Fenollosa
2016-03-02'rebuild' now keeps original author. Fixes #99Carlos Fenollosa
2016-02-25Merge pull request #103 from platschi/masterCarlos Fenollosa
remove topsy, their website now gets forwarded to apple support
2016-02-23remove topsy, their website now gets forwarded to apple supportplatschi
2016-02-08fix #94 #97Carlos Fenollosa
2016-02-08Merge pull request #87 from McDutchie/masterCarlos Fenollosa
Some more optimizations
2016-01-29fix #85Carlos
2016-01-19test_markdown() without temporary filesMartijn Dekker
- A much shorter test_markdown() function that compares output directly rather than using temp files. - Revert to using 'which' rather than 'command -v' for using the markdown binary because 'command -v' will find the markdown() shell function.