0 自定义Epub导出模板
Horis edited this page 2023-12-15 16:20:08 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

在导出目录新建一个名为Asset的文件夹,目录结构如下

.
├── Asset
│   ├── Images
│   │   └── test.jpg
│   ├── Styles
│   │   └── main.css
│   └── Text
│       ├── chapter.html
│       ├── cover.html
│       └── intro.html
└──

Asset中里面必须有Text文件夹Text文件夹里必须有chapter.html否则导出正文会为空
Text文件夹里面chapter.html是正文模板
其他的html格式的文件是封面、简介模板或其他模板处理后添加到epub中
Asset中的其他文件会直接复制到epub中

模板文件占位符

1、正文模板chapter.html
{title} 处理后的章节标题是一段html
{ori_title} 原始章节标题(纯文本)
{content} 章节内容html

2、其他模板cover.html、intro.html
{name} 书名
{author} 作者
{intro} 简介
{kind} 分类
{wordCount} 字数

模板例子

阅读默认模板(不含目录结构)

模板范例