diff --git a/internal/globals.sh b/internal/globals.sh index 1c9532e..54ad789 100644 --- a/internal/globals.sh +++ b/internal/globals.sh @@ -162,8 +162,8 @@ function build_postindex { ID="$(basename $(dirname "${P}"))" TITLE="$(get_title "${P}")" [[ "${PREFER_SHORT_POSTS}" == "yes" ]] && - LINK="/p/${ID}.html" || - LINK="/posts/$(echo "${TITLE}" | title_to_post_url)${TITLE_SEPARATOR_CHAR}${ID}.html" + LINK="${ROOT_URL}/p/${ID}.html" || + LINK="${ROOT_URL}/posts/$(echo "${TITLE}" | title_to_post_url)${TITLE_SEPARATOR_CHAR}${ID}.html" AUTHOR="$(get_author "${P}")" DATE="$(get_date "${P}")" DATE_PRETTY="$(ts_to_date "${DATE_FRMT}" "${DATE}")" @@ -233,9 +233,9 @@ function build_tagindex { TITLE="$(get_title "${HEADERS}")" if [[ "${PREFER_SHORT_POSTS}" == "yes" ]] then - LINK="/p/${ID}.html" + LINK="${ROOT_URL}/p/${ID}.html" else - LINK="/posts/$(echo "${TITLE}" | title_to_post_url)${TITLE_SEPARATOR_CHAR}${ID}.html" + LINK="${ROOT_URL}/posts/$(echo "${TITLE}" | title_to_post_url)${TITLE_SEPARATOR_CHAR}${ID}.html" fi AUTHOR="$(get_author "${HEADERS}")" echo "