summaryrefslogtreecommitdiff
path: root/http/src/microlog.upphtml
diff options
context:
space:
mode:
Diffstat (limited to 'http/src/microlog.upphtml')
-rw-r--r--http/src/microlog.upphtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/src/microlog.upphtml b/http/src/microlog.upphtml
index a1da471..aa3cfea 100644
--- a/http/src/microlog.upphtml
+++ b/http/src/microlog.upphtml
@@ -53,9 +53,9 @@ for year in $YEARS; do
#!
for post in $POSTS; do if [ "$(echo "${post}" | cut -c1-4)" = "$year" ]; then
title="$(grep "^export TITLE=" "${SRC}/microlog/${post}" | cut -c15-)"
-title="${title::${#title}-16}"
+title="$(echo "${title}" | cut -c1-$(( ${#title} - 16)) )"
date_published="$(echo "${post}" | cut -c1-10)"
-href="${SITE_URL}/microlog/${post::${#post}-17}.html"
+href="${SITE_URL}/microlog/$(echo ${post} | cut -c1-$(( ${#post} - 17 )) ).html"
#!
<li class='h-entry'>