We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24eb857 commit afe0210Copy full SHA for afe0210
internal/globals.sh
@@ -534,7 +534,7 @@ function post_markdown {
534
[[ "${PREFER_SHORT_POSTS}" == "yes" ]] && \
535
LINK="/p/${ID}.html" || \
536
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}"
+ sed "s|\(<a href=['\"]\)\(#.*\)|\1${ROOT_URL}${LINK}\2|" "${TMP1}" > "${TMP2}"
538
else
539
cat "${TMP1}" > "${TMP2}"
540
fi
0 commit comments