This commit is contained in:
2025-04-20 00:32:41 +10:00
commit 9a098b205a
26 changed files with 1839 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package template
import "bilinovel-downloader/model"
templ ContentXHTML(content *model.Chapter) {
@templ.Raw(`<?xml version="1.0" encoding="utf-8" standalone="no"?>`)
@templ.Raw(`<!DOCTYPE html>`)
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<head>
<title>{ content.Title }</title>
@templ.Raw(`<link href="../Styles/style.css" rel="stylesheet" type="text/css"/>`)
</head>
<body>
<div class="chapter">
<h1>{ content.Title }</h1>
@templ.Raw(`<hr/>`)
<div class="content">
@templ.Raw(content.Content)
</div>
</div>
</body>
</html>
}