mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix opensearch
This commit is contained in:
@@ -2,5 +2,5 @@
|
|||||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||||
<ShortName>{{.BTitle}}</ShortName>
|
<ShortName>{{.BTitle}}</ShortName>
|
||||||
<Description>{{.SubTitle}}</Description>
|
<Description>{{.SubTitle}}</Description>
|
||||||
<Url type="text/html" template="https://deepzz.com/search.html?q={searchTerms}" />
|
<Url type="text/html" template="https://{{.Domain}}/search.html?q={searchTerms}" />
|
||||||
</OpenSearchDescription>
|
</OpenSearchDescription>
|
||||||
|
|||||||
1
xml.go
1
xml.go
@@ -91,6 +91,7 @@ func doOpensearch() {
|
|||||||
params := map[string]string{
|
params := map[string]string{
|
||||||
"BTitle": Ei.BTitle,
|
"BTitle": Ei.BTitle,
|
||||||
"SubTitle": Ei.SubTitle,
|
"SubTitle": Ei.SubTitle,
|
||||||
|
"Domain": setting.Conf.Mode.Domain,
|
||||||
}
|
}
|
||||||
f, err := os.OpenFile("static/opensearch.xml", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
|
f, err := os.OpenFile("static/opensearch.xml", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user