Skip to content

Commit 5284285

Browse files
committed
fix epub cover
1 parent 513f8ce commit 5284285

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

templates/catalog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ <h1>目录</h1>
2828
{{#each chapter as |c| }}
2929
<li class="{{#if c.chapter.has_sub_chap }}chapter{{else}}subchapter{{/if}}"><a
3030
href="chap_{{c.chapter.id}}.html#chap_{{c.chapter.id}}">{{c.chapter.title}}</a></li>
31-
{{# if c.subchapter}}<ol>
32-
{{#each c.subchapter as |subchap|}}<li class="subchapter"><a href="chap_{{c.chapter.id}}.html#subchap_{{subchap.id}}">{{subchap.title}}</a></li>
31+
{{# if c.subchapter}}<ol>{{#each c.subchapter as |subchap|}}
32+
<li class="subchapter"><a href="chap_{{c.chapter.id}}.html#subchap_{{subchap.id}}">{{subchap.title}}</a></li>
3333
{{/each}}
3434
</ol>{{/if}}
3535
{{/each}}

templates/content.opf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
2424
</manifest>
2525
<spine toc="ncx">
26-
<itemref idref="cover" />
2726
<itemref idref="title-page" />
2827
<itemref idref="catalog" />
2928
{{#each chapter}}

0 commit comments

Comments
 (0)