Alexey Shpakovsky
599b5a4e58
use *.html file timestamp, even when editing *.md file
8 years ago
Alexey Shpakovsky
49285d02b8
rename *.md file together with *.html
if called like this:
bb.sh edit -n posted.md
then editing title will rename posted.html to reflect new title.
Now it will rename posted.md, too
8 years ago
Alexey Shpakovsky
f3fa14dc5a
edit markdown posts
usage:
bb.sh edit article.md
to edit previously posted article (for which markdown source was saved),
and repost it (under the same name or not)
8 years ago
Alexey Shpakovsky
7e6816c391
save markdown file
8 years ago
Carlos Fenollosa
44eea21cf4
Merge pull request #37 from Lex-2008/small-fixes/2
Small fixes/2
8 years ago
Alexey Shpakovsky
2291238120
preserve backslashes when posting/editing
ask "read" not to process backslash sequences when reading user-edited file
and leave them as is, instead
8 years ago
Aleksei Shpakovskii
daf456b956
Clean up tag links only in "Tags:" line
The bug was that if you decide, for some reason, insert links to tag pages
into text of your article, then after editing this article, the links were
gone. That happened because "tag links cleaning" was too agressive (it was
cleaning tags not only on tag line, but in the whole text)
8 years ago
Alexey Shpakovsky
5cbeaa9ad8
use expr to clean tags RegExp way
8 years ago
Alexey Shpakovsky
1dea4161da
delete generated HTML file before generating new one, not at the bottom
Bug was that when confirming "[E]dit again" by providing an empty string,
the file wasn't deleted
we could as well do
if [ "$post_status" != "p" ] && [ "$post_status" != "P" ]
but this way is IMO cleaner
8 years ago
Alexey Shpakovsky
74537033f3
bugfix: keep old page filename in the page's title link to itself
pass proper filename through parse_file to create_html_page
Bug was that when editing with "bb edit page.html" and changing title,
regenerated page.html had <h3><a class="ablack"> linking to newtitle.html
(non-existing file)
8 years ago
Alexey Shpakovsky
99fea81fcb
add tabstop to vim modeline
8 years ago
Carlos Fenollosa
8be94f6066
Merge pull request #35 from Lex-2008/small-fixes/1
Small fixes/1
8 years ago
Alexey Shpakovsky
132b51714b
Preserve line indentation in HTML file while rebuilding it
8 years ago
Alexey Shpakovsky
eef08c1984
cut on tag pages, too
8 years ago
Alexey Shpakovsky
52f974c606
Make filename generation routine play nice with Russian and Unix
8 years ago
Alexey Shpakovsky
b861d25a3a
Keep first backup of this day
it holds the version of the blog which was here "today in the morning".
this is useful for those who, like me, first do "bb.sh rebuild" few times
before realizing "oh damn I screwed up everything".
Note: you are not expected to screw up on midnight.
8 years ago
Alexey Shpakovsky
a8b9b02801
add vim modeline
8 years ago
Alexey Shpakovsky
0fc7058ae7
make CSS generation optional
8 years ago
Alexey Shpakovsky
abf6101439
Make inclusion of CSS files configurable
8 years ago
Carlos Fenollosa
2a02c34429
fixed touch on BSD utils
8 years ago
Carlos Fenollosa
45dee25b3d
Merge pull request #34 from Lex-2008/better-editing
Better editing
8 years ago
Alexey Shpakovsky
74c40baf64
add options to edit command
8 years ago
Alexey Shpakovsky
b3ea05ecd0
keep .html extension when editing
(to make synthax highlight work)
8 years ago
Alexey Shpakovsky
175810b7a3
preserve date when editing post
pass it through parse_file to create_html_page
8 years ago
Alexey Shpakovsky
773c5fa363
add options to bring back old behavior and keep old filename
8 years ago
Alexey Shpakovsky
b365aec797
show only text content in the editor
8 years ago
Alexey Shpakovsky
699ecc6005
move tag parsing to parse_file
8 years ago
Carlos Fenollosa
8762db0fb2
Merge pull request #33 from Lex-2008/cut-line-2
Cut line 2
8 years ago
Alexey Shpakovsky
8f5c7b4a27
make cutting optional
8 years ago
Alexey Shpakovsky
652e5f8053
make cut_line confugurable
8 years ago
Alexey Shpakovsky
ff36737c12
get_post_title in make_rss(), too
8 years ago
Alexey Shpakovsky
cf6bdb027b
"Read more..." link for articles which were cut
8 years ago
Alexey Shpakovsky
7e7d1a8688
cut text (leave up to "<!-- text cut -->") in index and RSS
note that when requested to cut entry, it keeps stuff between text end and
entry end, so twitter button will still find its way into RSS feed
also fix indentation
8 years ago
Alexey Shpakovsky
c581392bd4
use get_html_file_content while building index and RSS
8 years ago
Alexey Shpakovsky
b6f4e1e892
Move text and title extraction to separate functions
8 years ago
Carlos Fenollosa
667d42fa78
Merge pull request #32 from Lex-2008/master
Make tags more international
8 years ago
Alexey Shpakovsky
cec0baebf8
Make tags more international
8 years ago
Carlos Fenollosa
484f585cba
Rewording of usage()
8 years ago
Carlos Fenollosa
430eb996cc
all_tags needs to be called after rebuild_tags
8 years ago
Carlos Fenollosa
c2d5beeb42
Merge branch 'master' of github.com:cfenollosa/bashblog
8 years ago
Carlos Fenollosa
8b5ed42a2a
New "all tags" index page
8 years ago
Carlos Fenollosa
fe72236ef2
link to blog
8 years ago
Carlos Fenollosa
3d73749f1a
Added tag support
8 years ago
Carlos Fenollosa
948150ed92
Added tag support
8 years ago
Carlos Fenollosa
7476780742
Refactored get_post_title and is_boilerplate_file
8 years ago
Carlos Fenollosa
a0fbc15f7f
update author name
8 years ago
Carlos Fenollosa
44a14fbe05
changed author email
8 years ago
Carlos Fenollosa
03c70f6078
Merge pull request #30 from Lex-2008/master
small fixes
8 years ago
Alexey Shpakovsky
d850e6d9d4
fix date format in output of "bb.sh list"
8 years ago
Alexey Shpakovsky
9ee8c6ae65
Update copyright year
8 years ago