Add links to appendix and condense menu

This commit is contained in:
Hendrik Kleinwaechter
2023-07-14 16:32:15 +02:00
parent 105bc9d7a1
commit 12078a9139
2 changed files with 6 additions and 7 deletions

View File

@@ -208,9 +208,8 @@ figcaption.caption {
padding: 0; padding: 0;
} }
.menu-items .chapterToc { .menu-items .chapterToc, .menu-items .likechapterToc {
display: block; display: block;
margin-bottom: 10px;
} }
.menu-items a { .menu-items a {
@@ -273,10 +272,6 @@ figcaption.caption {
z-index: 1; z-index: 1;
} }
.menu-items .chapterToc {
margin-bottom: 8px;
}
.menu { .menu {
background: #F5F2EF; background: #F5F2EF;
padding: 20px 0px; padding: 20px 0px;

View File

@@ -225,7 +225,11 @@ class ModifyBuild
return text if menu.nil? return text if menu.nil?
home_html = %Q{<span class="chapterToc home-link"><a href="/">Home</a></span>} home_html = %Q{<span class="chapterToc home-link"><a href="/">Home</a></span>}
menu.inner_html = "#{home_html} #{menu.inner_html}" appendix_html = %Q{
<span class="chapterToc"><a href="https://breadco.de/kofi">Donate</a></span>
<span class="chapterToc"><a href="https://breadco.de/hardcover-book">Hardcover Book</a></span>
}
menu.inner_html = "#{home_html} #{menu.inner_html} #{appendix_html}"
doc.to_html doc.to_html
end end