支持的搜索格式:
- 输入关键词全文搜索:Let's Encrypt;
- 指定时间段搜索:date:2016、date:2016-10;
- 指定标签搜索:tag:github、tag:HTTPS;
- 组合搜索:date:2016 tag:docker;
diff --git a/.travis.yml b/.travis.yml index b1707ab..3ec8a04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ install: - curl https://glide.sh/get | sh # 安装glide包管理 script: - glide up - - GOOS=linux GOARCH=amd64 go build # 编译版本 + - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build # 编译版本 - docker build -t registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog . # 构建镜像 after_success: - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" registry.cn-hangzhou.aliyuncs.com diff --git a/Makefile b/Makefile index 8dd338c..057042e 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ gencert:makedir @echo "generate rsa cert..." @$(acme.sh) --force --issue --dns dns_ali $(sans) --log \ - --renew-hook "ct-submit ctlog.api.venafi.com < $(config)/ssl/domain.rsa.pem > $(config)/scts/rsa/venafi.sct \ + --renew-hook "ct-submit ctlog-gen2.api.venafi.com < $(config)/ssl/domain.rsa.pem > $(config)/scts/rsa/venafi.sct \ && ct-submit ctlog.wosign.com < $(config)/ssl/domain.rsa.pem > $(config)/scts/rsa/wosign.sct" @$(acme.sh) --install-cert -d $(cn) \ --key-file $(config)/ssl/domain.rsa.key \ @@ -49,7 +49,7 @@ gencert:makedir @echo "generate ecc cert..." @$(acme.sh) --force --issue --dns dns_ali $(sans) -k ec-256 --log \ - --renew-hook "ct-submit ctlog.api.venafi.com < $(config)/ssl/domain.ecc.pem > $(config)/scts/ecc/venafi.sct \ + --renew-hook "ct-submit ctlog-gen2.api.venafi.com < $(config)/ssl/domain.ecc.pem > $(config)/scts/ecc/venafi.sct \ && ct-submit ctlog.wosign.com < $(config)/ssl/domain.ecc.pem > $(config)/scts/ecc/wosign.sct" @$(acme.sh) --install-cert -d $(cn) --ecc \ --key-file $(config)/ssl/domain.ecc.key \ diff --git a/back.go b/back.go index 31798d6..c1eadee 100644 --- a/back.go +++ b/back.go @@ -3,6 +3,7 @@ package main import ( "bytes" + "encoding/json" "fmt" "html/template" "net/http" @@ -118,7 +119,8 @@ func HandlePost(c *gin.Context) { for tag, _ := range Ei.Tags { tags = append(tags, T{tag, tag}) } - h["Tags"] = tags + str, _ := json.Marshal(tags) + h["Tags"] = string(str) c.Status(http.StatusOK) RenderHTMLBack(c, "admin-post", h) } diff --git a/conf/app.yml b/conf/app.yml index 4021089..82a27ff 100644 --- a/conf/app.yml +++ b/conf/app.yml @@ -35,7 +35,7 @@ general: clean: 1 # 评论相关 disqus: - shortname: deepzz + shortname: xxxxxx publickey: wdSgxRm9rdGAlLKFcFdToBe3GT4SibmV7Y8EjJQ0r4GWXeKtxpopMAeIeoI2dTEg accesstoken: 50023908f39f4607957e909b495326af postscount: https://disqus.com/api/3.0/threads/set.json @@ -49,7 +49,7 @@ disqus: # 谷歌统计 google: url: https://www.google-analytics.com/collect - tid: UA-77251712-1 + tid: UA-xxxxxx-1 v: "1" t: pageview # 七牛CDN diff --git a/views/search.html b/views/search.html index 08d06e6..e4af650 100644 --- a/views/search.html +++ b/views/search.html @@ -1 +1 @@ -{{define "search"}}
支持的搜索格式:
支持的搜索格式: