mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-09 08:02:26 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ebd5d8b34 | ||
|
|
14b4534c1e | ||
|
|
0fdd8e0bd6 |
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
### [3.0.11](https://github.com/eiblog/eiblog/compare/v3.0.10...v3.0.11) (2026-01-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* title in xml not escape ([14b4534](https://github.com/eiblog/eiblog/commit/14b4534c1e034684b19808168ad0fbf5464e18ef))
|
||||||
|
|
||||||
### [3.0.10](https://github.com/eiblog/eiblog/compare/v3.0.9...v3.0.10) (2025-11-12)
|
### [3.0.10](https://github.com/eiblog/eiblog/compare/v3.0.9...v3.0.10) (2025-11-12)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,13 +40,13 @@ google: # 谷歌分析
|
|||||||
adsense: <script async src="https://pagead2.googlesyndication.com/xxx" crossorigin="anonymous"></script>
|
adsense: <script async src="https://pagead2.googlesyndication.com/xxx" crossorigin="anonymous"></script>
|
||||||
qiniu: # 七牛OSS
|
qiniu: # 七牛OSS
|
||||||
bucket: eiblog
|
bucket: eiblog
|
||||||
domain: st.deepzz.com
|
domain: st.deepzz.cn
|
||||||
accesskey: MB6AXl_Sj_mmFsL-Lt59Dml2Vmy2o8XMmiCbbSeC
|
accesskey: MB6AXl_Sj_mmFsL-Lt59Dml2Vmy2o8XMmiCbbSeC
|
||||||
secretkey: BIrMy0fsZ0_SHNceNXk3eDuo7WmVYzj2-zrmd5Tf
|
secretkey: BIrMy0fsZ0_SHNceNXk3eDuo7WmVYzj2-zrmd5Tf
|
||||||
twitter: # twitter card
|
twitter: # twitter card
|
||||||
card: summary
|
card: summary
|
||||||
site: deepzz02
|
site: deepzz02
|
||||||
image: st.deepzz.com/static/img/avatar.jpg
|
image: st.deepzz.cn/static/img/avatar.jpg
|
||||||
address: twitter.com/deepzz02
|
address: twitter.com/deepzz02
|
||||||
feedrpc: # rss ping
|
feedrpc: # rss ping
|
||||||
feedrurl: https://deepzz.superfeedr.com/
|
feedrurl: https://deepzz.superfeedr.com/
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{.Title}}</title>
|
<title>{{xmlescape .Title}}</title>
|
||||||
<link>https://{{.Host}}</link>
|
<link>https://{{.Host}}</link>
|
||||||
<description>{{.SubTitle}}</description>
|
<description>{{xmlescape .SubTitle}}</description>
|
||||||
<atom:link href="https://{{.Host}}/rss.html" rel="self" />
|
<atom:link href="https://{{.Host}}/rss.html" rel="self" />
|
||||||
<atom:link href="{{.FeedrURL}}" rel="hub" />
|
<atom:link href="{{.FeedrURL}}" rel="hub" />
|
||||||
<language>zh-CN</language>
|
<language>zh-CN</language>
|
||||||
<lastBuildDate>{{.BuildDate}}</lastBuildDate>
|
<lastBuildDate>{{.BuildDate}}</lastBuildDate>
|
||||||
{{range .Articles}}
|
{{range .Articles}}
|
||||||
<item>
|
<item>
|
||||||
<title>{{.Title}}</title>
|
<title>{{xmlescape .Title}}</title>
|
||||||
<link>https://{{$.Host}}/post/{{.Slug}}.html</link>
|
<link>https://{{$.Host}}/post/{{.Slug}}.html</link>
|
||||||
<comments>https://{{$.Host}}/post/{{.Slug}}.html#comments</comments>
|
<comments>https://{{$.Host}}/post/{{.Slug}}.html#comments</comments>
|
||||||
<guid>https://{{$.Host}}/post/{{.Slug}}.html</guid>
|
<guid>https://{{$.Host}}/post/{{.Slug}}.html</guid>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package tools
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
|
"html"
|
||||||
htmpl "html/template"
|
htmpl "html/template"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
@@ -26,6 +27,7 @@ func init() {
|
|||||||
TplFuncMap["isnotzero"] = IsNotZero
|
TplFuncMap["isnotzero"] = IsNotZero
|
||||||
TplFuncMap["getavatar"] = GetAvatar
|
TplFuncMap["getavatar"] = GetAvatar
|
||||||
TplFuncMap["imgtonormal"] = ImgToNormal
|
TplFuncMap["imgtonormal"] = ImgToNormal
|
||||||
|
TplFuncMap["xmlescape"] = html.EscapeString
|
||||||
}
|
}
|
||||||
|
|
||||||
// Str2html string to html
|
// Str2html string to html
|
||||||
|
|||||||
Reference in New Issue
Block a user