diff options
author | Alexey Shpakovsky <alexey@shpakovsky.ru> | 2014-03-23 10:22:59 +0100 |
---|---|---|
committer | Alexey Shpakovsky <alexey@shpakovsky.ru> | 2014-03-23 10:22:59 +0100 |
commit | 599b5a4e58f939e541fc18d5f24f8f6af2351a21 (patch) | |
tree | 95d1d0407a74c4e9fdac5497d78918ee68b63045 | |
parent | 49285d02b8298c7c34bdb97d32c73e4d6c6266ac (diff) |
use *.html file timestamp, even when editing *.md file
-rwxr-xr-x | bb.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -354,8 +354,8 @@ get_html_file_content() { # leave empty for default behavior (edit only text part and change name) edit() { # Original post timestamp - edit_timestamp="$(LC_ALL=$date_locale date -r $1 +"%a, %d %b %Y %H:%M:%S %z" )" - touch_timestamp="$(LC_ALL=$date_locale date -r $1 +'%Y%m%d%H%M')" + edit_timestamp="$(LC_ALL=$date_locale date -r "${1%%.*}.html" +"%a, %d %b %Y %H:%M:%S %z" )" + touch_timestamp="$(LC_ALL=$date_locale date -r "${1%%.*}.html" +'%Y%m%d%H%M')" if [ "$2" = "full" ]; then $EDITOR "$1" filename="$1" |