summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-12-29 13:36:21 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-12-29 13:36:21 -0500
commit766940da13cf840363d0e85f4cf4764b2a6de244 (patch)
treec11b0fd5ea7db872adef096e140f5a1eb3c4b312 /Makefile
parentf270b63f80ce440f5b07f07e70e0f022293082d3 (diff)
download53hor-766940da13cf840363d0e85f4cf4764b2a6de244.tar.xz
53hor-766940da13cf840363d0e85f4cf4764b2a6de244.zip
fixed makefile creating bad links
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d59fa49..bbd41c7 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ post:
SHORT_DATE=`date +"%Y-%m-%d"`; \
LONG_DATE=`date +"%a, %d %b %Y"`; \
mkdir -p posts/$$CATEGORY; \
- FILENAME=posts/$$CATEGORY/$$SHORT_DATE-`echo $$TITLE | tr "[:upper:]" "[:lower:]" | tr "[:blank:]" -`.html; \
+ FILENAME=posts/$$CATEGORY/$$SHORT_DATE-`echo $$TITLE | tr -C "[:alnum:]" ' ' | tr "[:upper:]" "[:lower:]" | tr -s "[:blank:]" ' '`.html; \
cp $(TEMPLATE) $$FILENAME; \
sed -i '' "s/{{ title }}/$$TITLE/g" $$FILENAME; \
$$EDITOR $$FILENAME; \