Update templ dependency to v0.3.906 and adjust XML declaration formatting in templates

This commit is contained in:
2025-07-16 21:02:15 +08:00
parent 042b383988
commit ca3fdf8980
11 changed files with 21 additions and 23 deletions

View File

@@ -3,9 +3,9 @@ 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">
@templ.Raw(`<?xml version='1.0' encoding='utf-8'?>`)
// @templ.Raw(`<!DOCTYPE html>`)
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="zh-CN">
<head>
<title>{ content.Title }</title>
@templ.Raw(`<link href="../Styles/style.css" rel="stylesheet" type="text/css"/>`)