diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-22 17:26:29 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-22 17:26:29 +0100 |
| commit | 44901943894cad8b210c086e88f42bff82b0211a (patch) | |
| tree | c63c55d71313971dadefb75d8b8df24390268d36 /http/src/microlog.upphtml | |
| parent | 71052b8c265c500f8a39f5e0763b74cb5df071fc (diff) | |
replaces :: with `cut` for POSIX compatibility in upp* source files
Diffstat (limited to 'http/src/microlog.upphtml')
| -rw-r--r-- | http/src/microlog.upphtml | 4 |
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'> |
