|
|
@@ -14,12 +14,12 @@ if [[ ${1} = 'regen' ]] || [[ ${1} = '--regen' ]]; then |
|
|
|
PAGE_TITLE="$(cat ${PAGE} | head -1 | sed -e 's|<!-- ||; s| -->||')" |
|
|
|
DESTINATION_DIR="$(echo ${PAGE} | sed -e 's|index.html||')" |
|
|
|
PAGE_CONTENT_FILE="$(cat ${PAGE} | head -2 | tail -1 | sed -e 's|<!-- ||; s| -->||')" |
|
|
|
PAGE_CONTENT="$(pandoc --from markdown --to html ${PAGE_CONTENT_FILE})" |
|
|
|
PAGE_CONTENT="$(pandoc --from markdown --to html ${PAGE_CONTENT_FILE} | sed -e 's|/\">|/\" target=\"_blank\">|g')" |
|
|
|
fi |
|
|
|
|
|
|
|
if [[ ! -z "${1}" ]] && [[ ! -z "${2}" ]] && [[ ! -z "${3}" ]]; then |
|
|
|
PAGE_TITLE="${1}" |
|
|
|
PAGE_CONTENT="$(pandoc --from markdown --to html ${2})" |
|
|
|
PAGE_CONTENT="$(pandoc --from markdown --to html ${2} | sed -e 's|/\">|/\" target=\"_blank\">|g')" |
|
|
|
PAGE_CONTENT_FILE="${2}" |
|
|
|
DESTINATION_DIR="${3}" |
|
|
|
fi |
|
|
@@ -52,17 +52,17 @@ if [[ ! -z ${PAGE_TITLE} ]] && [[ ! -z ${PAGE_CONTENT} ]] && [[ ! -z ${PAGE_CONT |
|
|
|
</a> |
|
|
|
<br> |
|
|
|
<br> |
|
|
|
<a href=\"https://raru.re/@easthighNerd/\"> |
|
|
|
<a href=\"https://raru.re/@easthighNerd/\" target=\"_blank\"> |
|
|
|
Mastodon |
|
|
|
</a> |
|
|
|
<br> |
|
|
|
<br> |
|
|
|
<!-- <a href=\"https://pixelfed.social/@easthighNerd/\"> |
|
|
|
<!-- <a href=\"https://pixelfed.social/@easthighNerd/\" target=\"_blank\"> |
|
|
|
Pixelfed |
|
|
|
</a> |
|
|
|
<br> |
|
|
|
<br> --> |
|
|
|
<a href=\"https://git.easthighnerd.me/easthighNerd/\"> |
|
|
|
<a href=\"https://git.easthighnerd.me/easthighNerd/\" target=\"_blank\"> |
|
|
|
Gitea |
|
|
|
</a> |
|
|
|
<br> |
|
|
|