Skip to content

Commit

Permalink
tweak html style
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1240 committed Feb 2, 2023
1 parent 610f09c commit 1b3f22f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ html: $(SRC)
--number-sections \
-o html \
--mathml \
--highlight-style tango \
--template chunked.html \
--variable title="技术图书排版" \
--variable description-meta="《技术图书排版》,开源免费电子书。" \
--lua-filter diagram-generator.lua \
--lua-filter=docx-figure-number.lua \
--include-after after.html \
Expand Down
1 change: 0 additions & 1 deletion after.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<p><br/></p>
<hr/>
<div class="w-full">
版权所有 &copy; 杜金房 2014-2023,仅供在线阅读,谢绝一切形式转载。
Expand Down
21 changes: 21 additions & 0 deletions chunked.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
span.navlink { flex: 1; }
span.navlink-label { display: inline-block; min-width: 4em; }
$styles.html()$
body { font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC ,WenQuanYi Micro Hei, sans-serif;}
code { color: navy }
a { color: #ef1aa4; text-decoration: none; }
a:visited { color: #ef1aa4; text-decoration: none; }
</style>
$for(css)$
<link rel="stylesheet" href="$css$" />
Expand Down Expand Up @@ -93,6 +97,23 @@ <h2 id="$idprefix$toc-title">$toc-title$</h2>
</nav>
$endif$
$body$

<hr>
<nav id="sitenavbottom">
<div class="sitenav">
<span class="navlink">
$if(previous.url)$
<span class="navlink-label">上一节:</span> <a href="$previous.url$" accesskey="p" rel="previous">$previous.title$</a>
$endif$
</span>
<span class="navlink">
$if(next.url)$
<span class="navlink-label">下一节:</span> <a href="$next.url$" accesskey="n" rel="next">$next.title$</a>
$endif$
</span>
</div>
</nav>

$for(include-after)$
$include-after$
$endfor$
Expand Down
1 change: 1 addition & 0 deletions meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ author: 杜金房
title-meta: 技术图书排版
title-prefix: 技术图书排版
author-meta: 杜金房
description-meta: 《技术图书排版》,开源免费电子书。
publisher: 版权所有\qquad 侵权必究
verbatim-in-note: true
keywords: "技术图书排版"
Expand Down

0 comments on commit 1b3f22f

Please sign in to comment.