Skip to content

Commit afe0210

Browse files
committed
Add ROOT_URL to table of content
1 parent 24eb857 commit afe0210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/globals.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ function post_markdown {
534534
[[ "${PREFER_SHORT_POSTS}" == "yes" ]] && \
535535
LINK="/p/${ID}.html" || \
536536
LINK="/posts/$(get_title "${METADATA_DIR}/${ID}/headers" | title_to_post_url)${TITLE_SEPARATOR_CHAR}${ID}.html"
537-
sed "s|\(<a href=['\"]\)\(#.*\)|\1${LINK}\2|" "${TMP1}" > "${TMP2}"
537+
sed "s|\(<a href=['\"]\)\(#.*\)|\1${ROOT_URL}${LINK}\2|" "${TMP1}" > "${TMP2}"
538538
else
539539
cat "${TMP1}" > "${TMP2}"
540540
fi

0 commit comments

Comments
 (0)