mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
part is the first page
This commit is contained in:
parent
37478be0d9
commit
b7c783aec5
@ -156,8 +156,8 @@ func (e *ePub) Write() error {
|
|||||||
content := []zipContent{
|
content := []zipContent{
|
||||||
{"META-INF/container.xml", containerTmpl},
|
{"META-INF/container.xml", containerTmpl},
|
||||||
{"OEBPS/content.opf", e.render(contentTmpl, map[string]any{"Info": e, "Images": part.Images})},
|
{"OEBPS/content.opf", e.render(contentTmpl, map[string]any{"Info": e, "Images": part.Images})},
|
||||||
{"OEBPS/toc.ncx", e.render(tocTmpl, map[string]any{"Info": e, "Image": part.Images[0]})},
|
{"OEBPS/toc.ncx", e.render(tocTmpl, map[string]any{"Info": e})},
|
||||||
{"OEBPS/nav.xhtml", e.render(navTmpl, map[string]any{"Info": e, "Image": part.Images[0]})},
|
{"OEBPS/nav.xhtml", e.render(navTmpl, map[string]any{"Info": e})},
|
||||||
{"OEBPS/Text/style.css", styleTmpl},
|
{"OEBPS/Text/style.css", styleTmpl},
|
||||||
{"OEBPS/Text/part.xhtml", e.render(partTmpl, map[string]any{
|
{"OEBPS/Text/part.xhtml", e.render(partTmpl, map[string]any{
|
||||||
"Info": e,
|
"Info": e,
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
<body>
|
<body>
|
||||||
<nav xmlns:epub="http://www.idpf.org/2007/ops" epub:type="toc" id="toc">
|
<nav xmlns:epub="http://www.idpf.org/2007/ops" epub:type="toc" id="toc">
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="Text/{{ .Image.Id }}.xhtml">{{ .Info.Title }}</a></li>
|
<li><a href="Text/part.xhtml">{{ .Info.Title }}</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
<nav epub:type="page-list">
|
<nav epub:type="page-list">
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="Text/{{ .Image.Id }}.xhtml">{{ .Info.Title }}</a></li>
|
<li><a href="Text/part.xhtml">{{ .Info.Title }}</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
</body>
|
</body>
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<docTitle><text>{{ .Info.Title }}</text></docTitle>
|
<docTitle><text>{{ .Info.Title }}</text></docTitle>
|
||||||
<navMap>
|
<navMap>
|
||||||
<navPoint id="Text"><navLabel><text>{{ .Info.Title }}</text></navLabel><content src="Text/{{ .Image.Id }}.xhtml"/></navPoint>
|
<navPoint id="Text"><navLabel><text>{{ .Info.Title }}</text></navLabel><content src="Text/part.xhtml"/></navPoint>
|
||||||
</navMap>
|
</navMap>
|
||||||
</ncx>
|
</ncx>
|
Loading…
x
Reference in New Issue
Block a user