Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed typo #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/http/controllers/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func mergeH(c *gin.Context, h gin.H) gin.H {
return mh
}

// ToKeywords 用都好分割,拼接关键词
// ToKeywords 用逗号分隔,拼接关键词
func ToKeywords(works ...string) string {
return strings.Join(works, ",")
}
Expand All @@ -90,7 +90,7 @@ func Webhook(c *gin.Context) {

pullDocs()

// 从新初始化博客列表的内容
// 重新初始化博客列表的内容
mdfile.Model.Reload()
}

Expand Down Expand Up @@ -132,7 +132,7 @@ func checkSecret(singn string, body []byte) bool {
singnature := make([]byte, 20)
hex.Decode(singnature, []byte(singn[5:]))

// 比较签名是否一直
// 比较签名是否一致
if hmac.Equal(singnature, mKey) {
return true
}
Expand Down
2 changes: 1 addition & 1 deletion app/mdfile/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func getAritclesSpecifiedCategory(category *Category) Articles {
articles := make([]Article, 0)

for _, info := range filesInfo {
// 如果目录下的是文件,就不处理
// 如果目录下的是文件夹,就不处理
if info.IsDir() {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion app/mdfile/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type Category struct {
// 分类的描述
Description string

// 当是一个外联时,就不会再去获取对应的 markdown 文档
// 当是一个外链时,就不会再去获取对应的 markdown 文档
OutLink bool `toml:"out_link"`

// 是否是激活状态
Expand Down
2 changes: 1 addition & 1 deletion app/routes/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ func New(e *gin.Engine) {

// 首页
front.GET("/", controllers.Home)
// about 页

// about 页
front.GET("/about", controllers.About)

// 博客文章详情
Expand Down