mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-20 19:07:25 +08:00
优化页眉的显示
This commit is contained in:
@@ -245,8 +245,8 @@ func (m *BookResult) Converter(sessionId string) (ConvertBookResult, error) {
|
||||
Cover: m.Cover,
|
||||
Timestamp: time.Now().Format("2006-01-02 15:04:05"),
|
||||
Description: string(blackfriday.MarkdownBasic([]byte(m.Description))),
|
||||
Footer: "\"<p style='color:#8E8E8E;font-size:12px;'>本文档使用 <a href='https://www.iminho.me' style='text-decoration:none;color:#1abc9c;font-weight:bold;'>MinDoc</a> 构建 <span style='float:right'>- _PAGENUM_ -</span></p>\"",
|
||||
Header: "\"<p style='color:#8E8E8E;font-size:12px;'>_SECTION_</p>\"",
|
||||
Footer: "<p style='color:#8E8E8E;font-size:12px;'>本文档使用 <a href='https://www.iminho.me' style='text-decoration:none;color:#1abc9c;font-weight:bold;'>MinDoc</a> 构建 <span style='float:right'>- _PAGENUM_ -</span></p>",
|
||||
Header: "<p style='color:#8E8E8E;font-size:12px;'>_SECTION_</p>",
|
||||
Identifier: "",
|
||||
Language: "zh-CN",
|
||||
Creator: m.CreateName,
|
||||
@@ -264,7 +264,7 @@ func (m *BookResult) Converter(sessionId string) (ConvertBookResult, error) {
|
||||
More: []string{},
|
||||
}
|
||||
if m.Publisher != "" {
|
||||
ebookConfig.Footer = "\"<p style='color:#8E8E8E;font-size:12px;'>本文档由 <span style='text-decoration:none;color:#1abc9c;font-weight:bold;'>"+ m.Publisher +"</span> 生成<span style='float:right'>- _PAGENUM_ -</span></p>\""
|
||||
ebookConfig.Footer = "<p style='color:#8E8E8E;font-size:12px;'>本文档由 <span style='text-decoration:none;color:#1abc9c;font-weight:bold;'>"+ m.Publisher +"</span> 生成<span style='float:right'>- _PAGENUM_ -</span></p>"
|
||||
}
|
||||
|
||||
if tempOutputPath, err = filepath.Abs(tempOutputPath); err != nil {
|
||||
|
Reference in New Issue
Block a user