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
pull/18/head
Aravinth Manivannan 2022-10-28 14:30:12 +05:30
rodzic 93a246b4fb
commit 44a98fb20c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: AD9F0F08E855ED88
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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)
}