mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-09 12:41:12 -06:00
Add links to appendix and condense menu
This commit is contained in:
@@ -208,9 +208,8 @@ figcaption.caption {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.menu-items .chapterToc {
|
||||
.menu-items .chapterToc, .menu-items .likechapterToc {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.menu-items a {
|
||||
@@ -273,10 +272,6 @@ figcaption.caption {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.menu-items .chapterToc {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.menu {
|
||||
background: #F5F2EF;
|
||||
padding: 20px 0px;
|
||||
|
||||
@@ -225,7 +225,11 @@ class ModifyBuild
|
||||
return text if menu.nil?
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user