logging m1.

This commit is contained in:
2022-02-23 23:35:27 -08:00
parent 88d0fc3642
commit d528613fef
6 changed files with 109 additions and 2 deletions

2
today
View File

@@ -4,7 +4,6 @@ set -eux
TODAY="$(date +'%Y%m%d')"
DATETIME="$(date +'%F %H:%M')"
POSTPATH="content/posts/${TODAY}.md"
PUBDATE="$(date +'%F %H:%M %Z')"
TITLE="$@"
if [ -z "$TITLE" ]
@@ -16,6 +15,7 @@ else
SLUG="$(echo ${TITLE}|tr [A-Z] [a-z]|tr ' ' '-')"
fi
POSTPATH="content/posts/${SLUG}.md"
if [ ! -e "${POSTPATH}" ]
then
cat <<EOF > ${POSTPATH}