Merge pull request 'fix-theme-footnote' (#18) from realaravinth/gitea-open-letter:fix-theme-footnote into main
Reviewed-on: https://codeberg.org/SocialCoding/gitea-open-letter/pulls/18
This commit is contained in:
commit
e34e052ac3
3 changed files with 24 additions and 1 deletions
|
@ -465,3 +465,25 @@ ul.language-select > li {
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.footnote-definition-label::before {
|
||||
content: "[";
|
||||
}
|
||||
|
||||
.footnote-definition-label::after {
|
||||
content: "] :";
|
||||
}
|
||||
|
||||
.footnote-definition-label {
|
||||
// zola renders the footnotes as <sup>,
|
||||
// so it looks weird on the website
|
||||
// This snippet makes this particular <sup> look like normal text
|
||||
top: 4px;
|
||||
position: relative;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.footnote-definition-label,
|
||||
.footnote-definition > p {
|
||||
display: inline;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ readonly file="content/letter.md"
|
|||
set -euo pipefail
|
||||
|
||||
init() {
|
||||
rm -rf $file || true
|
||||
rm -rf content || true
|
||||
|
||||
mkdir content
|
||||
touch $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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue