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:
parent
93a246b4fb
commit
44a98fb20c
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue