mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-09 16:12:26 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc37d5e093 | ||
|
|
61024bfebd |
@@ -7,4 +7,4 @@ ADD static/tzdata/Shanghai /etc/localtime
|
|||||||
COPY . /eiblog
|
COPY . /eiblog
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
WORKDIR /eiblog
|
WORKDIR /eiblog
|
||||||
CMD ["sh","-c","eiblog"]
|
CMD ["sh","-c","/eiblog/eiblog"]
|
||||||
|
|||||||
4
back.go
4
back.go
@@ -3,6 +3,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -118,7 +119,8 @@ func HandlePost(c *gin.Context) {
|
|||||||
for tag, _ := range Ei.Tags {
|
for tag, _ := range Ei.Tags {
|
||||||
tags = append(tags, T{tag, tag})
|
tags = append(tags, T{tag, tag})
|
||||||
}
|
}
|
||||||
h["Tags"] = tags
|
str, _ := json.Marshal(tags)
|
||||||
|
h["Tags"] = string(str)
|
||||||
c.Status(http.StatusOK)
|
c.Status(http.StatusOK)
|
||||||
RenderHTMLBack(c, "admin-post", h)
|
RenderHTMLBack(c, "admin-post", h)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user