fix: links rendered from letter.md should point to root

DESCRIPTION
    README.md is processed and written to content/letter.md before
    invoking Zola. templates/index.html uses a hack to render
    content/letter.md in index.html. So relative links defined in
    letter.md, will be relative to /letter/

    This patch removes /letter/ from links
This commit is contained in:
Aravinth Manivannan 2022-10-28 14:30:12 +05:30
parent 93a246b4fb
commit 44a98fb20c
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -80,6 +80,7 @@ build() {
}
no_absolute_url() {
sed -i 's/https:\/\/gitea-open-letter.coding.social\/letter\//https:\/\/gitea-open-letter.coding.social\//g' $(find public -type f | grep html)
sed -i 's/https:\/\/gitea-open-letter.coding.social//g' $(find public -type f | grep html)
}