Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff093cc

Browse files
committed
SEO优化
1 parent 4105b21 commit ff093cc

40 files changed

+19
-72
lines changed

src/http/http.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,16 @@ func executeTpl(ctx echo.Context, tpl *template.Template, data map[string]interf
193193
if jsTpl := tpl.Lookup("js"); jsTpl == nil {
194194
tpl.Parse(`{{define "js"}}{{end}}`)
195195
}
196-
if jsTpl := tpl.Lookup("css"); jsTpl == nil {
196+
if cssTpl := tpl.Lookup("css"); cssTpl == nil {
197197
tpl.Parse(`{{define "css"}}{{end}}`)
198198
}
199+
// 如果没有 seo 模板,则定义之
200+
if seoTpl := tpl.Lookup("seo"); seoTpl == nil {
201+
tpl.Parse(`{{define "seo"}}
202+
<meta name="keywords" content="` + logic.WebsiteSetting.SeoKeywords + `">
203+
<meta name="description" content="` + logic.WebsiteSetting.SeoKeywords + `">
204+
{{end}}`)
205+
}
199206

200207
// 当前用户信息
201208
curUser, ok := ctx.Get("user").(*model.Me)

template/403.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}对不起,没有操作权限 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="Go语言,Golang,Go社区,Go中文社区,Golang中文社区,Go语言社区,Go语言学习,学习Go语言,Go语言学习园地,Golang 中国,Golang中国,Golang China, Go语言论坛">
3-
<meta name="description" content="Go语言中文网,中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。分享 Go 语言知识,交流使用经验">{{end}}
42
{{define "content"}}
53
<div class="row box_white">
64
<div class="col-md-12">

template/404.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}寻找遗失儿童 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="Go语言,Golang,Go社区,Go中文社区,Golang中文社区,Go语言社区,Go语言学习,学习Go语言,Go语言学习园地,Golang 中国,Golang中国,Golang China, Go语言论坛">
3-
<meta name="description" content="Go语言中文网,中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。分享 Go 语言知识,交流使用经验">{{end}}
42
{{define "content"}}
53
<div class="row box_white">
64
<div class="col-md-6">

template/500.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}对不起,该页面出错了 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="Go语言,Golang,Go社区,Go中文社区,Golang中文社区,Go语言社区,Go语言学习,学习Go语言,Go语言学习园地,Golang 中国,Golang中国,Golang China, Go语言论坛">
3-
<meta name="description" content="Go语言中文网,中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。分享 Go 语言知识,交流使用经验">{{end}}
42
{{define "content"}}
53
<div id="main" class="container-fluid">
64
<div class="content">

template/articles/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{define "title"}}{{.article.Title}} {{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.article.Title}}, Go语言博客文章, Go语言博文, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
2+
{{define "seo"}}<meta name="keywords" content="{{.setting.SeoKeywords}}">
33
<meta name="description" content="{{substring .article.Txt 200 ""}}">{{end}}
44
{{define "content"}}
55
<div class="row banner">

template/articles/list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}网友博文{{end}}
2-
{{define "seo"}}<meta name="keywords" content="Go语言博客文章, Go语言博文, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="文章来自国内知名网站,Go爱好者学习笔记,经验分享;也有爱好者自己的博客文章,以及一些国外精彩文章。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/articles/new.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}发布文章 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="发布文章,Golang,Go社区,Golang中文社区,Go语言学习,Go语言,学习Go语言,Golang 中国,Golang中国,Golang China, Go语言论坛, Go中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="Go语言中文网,Go中文社区,Golang中国,Go语言学习园地,提供一个Go爱好者交流的中文平台">{{end}}
42
{{define "content"}}
53
<div class="row">
64
<div class="col-lg-9 col-md-8 col-sm-7">

template/books/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{define "title"}}{{.book.Name}} {{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.book.Name}}, Go语言图书, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地,Go语言中文网">
2+
{{define "seo"}}<meta name="keywords" content="{{.book.Name}},{{.setting.SeoKeywords}}">
33
<meta name="description" content="{{substring .book.Desc 200 ""}}">{{end}}
44
{{define "content"}}
55
<div class="row banner">

template/books/list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}图书{{end}}
2-
{{define "seo"}}<meta name="keywords" content="Go语言图书, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地,Go语言中文网">
3-
<meta name="description" content="汇总了国内外Go语言相关的图书">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/favorite.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}{{.user.Username}}的收藏{{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.user.Username}}的收藏, Go语言, Golang, Go中文社区, Golang中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="我收藏的主题、资源、文章和项目等">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{define "title"}}首页{{end}}
2-
{{define "seo"}}<meta name="keywords" content="Go语言,Golang,Go社区,Go中文社区,Golang中文社区,Go语言社区,Go语言学习,学习Go语言,Go语言学习园地,Golang 中国,Golang中国,Golang China, Go语言论坛">
3-
<meta name="description" content="Go语言中文网,中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。分享 Go 语言知识,交流使用经验">{{end}}
2+
{{define "seo"}}<meta name="keywords" content="{{.setting.Name}},社区,资源,文章,图书,开源项目,{{.setting.SeoKeywords}}">
3+
<meta name="description" content="{{.setting.SeoDescription}}">{{end}}
44
{{define "content"}}
55
<div class="row">
66
<div id="content" class="tip box_white">

template/login.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}登录 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="会员登录, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/messages/list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}{{if eq .msgtype "system"}}系统消息{{else}}{{if eq .msgtype "inbox"}}收件箱{{else}}发件箱{{end}}{{end}} {{end}}
2-
{{define "seo"}}<meta name="keywords" content="消息, Go语言开源项目, Go语言博文, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="Go中文社区,Golang中国,Go语言学习园地,提供一个Go爱好者交流的中文平台">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/messages/send.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}发送消息 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="发送消息, Go语言开源项目, Go语言博文, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="Go中文社区,Golang中国,Go语言学习园地,提供一个Go爱好者交流的中文平台">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/projects/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{define "title"}}{{.project.Name}}首页、文档和下载 - {{.project.Category}} {{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.project.Name}},{{.project.Name}}是什么,{{.project.Name}}下载,{{.project.Name}}论坛,{{.project.Name}}汉化,{{.project.Category}}, 开源项目, Go语言开源项目, Go语言博文, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
2+
{{define "seo"}}<meta name="keywords" content="{{.project.Name}},{{.project.Name}}是什么,{{.project.Name}}下载,{{.project.Name}}论坛,{{.project.Name}}汉化,{{.project.Category}}>
33
<meta name="description" content="{{substring .project.Desc 200 "..."}}">{{end}}
44
{{define "content"}}
55
<div class="row banner">

template/projects/list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}开源项目 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="开源项目, Go语言开源项目, Go语言博文, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="Go语言中文网,收集了Go语言的大部分知名开源项目,有项目的介绍,甚至有网友对开源项目的解读">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/projects/new.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}{{if .project.Id}}修改{{else}}发布{{end}}项目 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="开源项目, Go语言开源项目, Go语言博文, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="Go语言中文网,收集了Go语言的大部分知名开源项目,有项目的介绍,甚至有网友对开源项目的解读">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/readings/list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}技术晨读 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="技术晨读, Go语言技术晨读, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="Go语言中文网每天给gopher们分享技术,每天一篇技术晨读,和大家一起进步">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/register.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}注册新会员 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="会员, 注册新会员, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/resources/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{define "title"}}{{.resource.title}} {{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.resource.title}}, Golang中国社区, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
2+
{{define "seo"}}<meta name="keywords" content="{{.setting.SeoKeywords}}">
33
<meta name="description" content="{{substring .resource.content 200 ""}}">{{end}}
44
{{define "content"}}
55
<div class="row banner">

template/resources/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}资源索引 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="Golang,Go社区,Golang中文社区,Go语言学习,Go语言,学习Go语言,Golang 中国,Golang中国,Golang China, Go语言论坛, Go中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="Go中文社区,Golang中国,Go语言学习园地,提供一个Go爱好者交流的中文平台">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/resources/new.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}{{if .resource.Id}}修改{{else}}分享{{end}}资源 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="分享资源,Golang,Go社区,Golang中文社区,Go语言学习,Go语言,学习Go语言,Golang 中国,Golang中国,Golang China, Go语言论坛, Go中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="Go中文社区,Golang中国,Go语言学习园地,提供一个Go爱好者交流的中文平台">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/search.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}搜索{{end}}
2-
{{define "seo"}}<meta name="keywords" content="Go语言博客文章, Go语言博文, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区,Go语言中文网,Go语言学习园地">
3-
<meta name="description" content="文章来自国内知名网站知名,Go爱好者学习笔记,经验分享;也有爱好者自己的博客文章,以及一些国外精彩文章。">{{end}}
42
{{define "content"}}
53
<div class="row header_title">
64
<div class="col-lg-12 col-md-12 col-sm-12 search-box">

template/sites.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ <h2>Golang 社区网站</h2>
2222
<h2>技术博客 </h2>
2323
<div class="row">
2424
<div class="span3 site">
25-
<img alt="Go语言学习园地博客" class="favicon" src="">
26-
<a href="http://blog.studygolang.com/" rel="nofollow" target="_blank" title="Go语言学习园地博客">Go语言学习园地博客</a>
25+
<img alt="Go语言中文网博客" class="favicon" src="">
26+
<a href="http://blog.studygolang.com/" rel="nofollow" target="_blank" title="Go语言中文网博客">Go语言中文网博客</a>
2727
</div>
2828
</div>
2929
</div>

template/topics/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{define "title"}}{{.topic.title}} {{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.topic.title}}, Golang中国社区, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
2+
{{define "seo"}}<meta name="keywords" content="{{.setting.SeoKeywords}}">
33
<meta name="description" content="{{substring .topic.content 200 ""}}">{{end}}
44
{{define "content"}}
55
<div class="row banner">

template/topics/list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}社区主题 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="Golang,Go社区,Golang中文社区,Go语言学习,Go语言,学习Go语言,Golang 中国,Golang中国,Golang China, Go语言论坛, Go中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="Go语言中文网,Go中文社区,Golang中国,Go语言学习园地,提供一个Go爱好者交流的中文平台">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/topics/new.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}{{if .topic.Tid}}修改{{else}}发布{{end}}主题 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="发布主题,Golang,Go社区,Golang中文社区,Go语言学习,Go语言,学习Go语言,Golang 中国,Golang中国,Golang China, Go语言论坛, Go中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="Go中文社区,Golang中国,Go语言学习园地,提供一个Go爱好者交流的中文平台">{{end}}
42
{{define "content"}}
53
<div class="row">
64
<div class="col-lg-9 col-md-8 col-sm-7">

template/topics/node.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}社区主题 - {{.node.name}} {{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.node.name}} Golang,Go社区,Golang中文社区,Go语言学习,Go语言,学习Go语言,Golang 中国,Golang中国,Golang China, Go语言论坛, Go中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="Go中文社区,Golang中国,Go语言学习园地,提供一个Go爱好者交流的中文平台">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/user/activate.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}激活账号{{end}}
2-
{{define "seo"}}<meta name="keywords" content="激活账号, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="Go语言中文网,中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/user/edit.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}{{.user.Username}} 编辑个人信息 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="会员, 个人信息, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/user/email_unsub.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}邮件退订 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="邮件退订, 邮件订阅, Golang中国社区, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
3-
<meta name="description" content="中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/user/forget_pwd.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}忘记密码 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="会员登录, 忘记密码, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/user/profile.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}{{.user.Username}}的个人首页 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.user.Username}}的个人首页, Go语言, Golang, Go中文社区,Golang中文社区, Go语言中文网, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/user/reset_pwd.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}重置密码 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="会员,重置密码, Go语言, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/user/users.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}会员列表 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="会员列表, Go语言, Golang, Go中文社区,Golang中文社区, Go语言中文网, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="中国 Golang 社区,Go语言学习园地,致力于构建完善的 Golang 中文社区,Go语言爱好者的学习家园。完全Go语言实现。">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

template/wide/playground.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{define "title"}}Wide 团队开发,随时随地 {{end}}
2-
{{define "seo"}}<meta name="keywords" content="Wide 团队开发,随时随地,Playground,Golang,Go社区,Golang中文社区,Go语言学习,Go语言,学习Go语言,Golang 中国,Golang中国,Golang China, Go语言论坛, Go中文社区, Go语言社区, Go语言中文网, Go语言学习园地">
2+
{{define "seo"}}<meta name="keywords" content="Wide 团队开发,Playground,{{.setting.SeoKeywords}}">
33
<meta name="description" content="Wide 随时随地的进行团队开发,支持在线运行 Go 代码">{{end}}
44
{{define "content"}}
55
<div class="row banner">

template/wiki/content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{define "title"}}{{.wiki.Title}}{{end}}
2-
{{define "seo"}}<meta name="keywords" content="{{.wiki.Title}}, Go语言开源项目, Go语言博文, Go语言, Go语言中文网, Golang, Go中文社区,Golang中文社区, Go语言社区, Go语言学习园地">
2+
{{define "seo"}}<meta name="keywords" content="{{.setting.SeoKeywords}}">
33
<meta name="description" content="{{substring .wiki.Content 200 "..."}}">{{end}}
44
{{define "content"}}
55
<div class="row banner">

template/wiki/list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{{define "title"}}Wiki索引{{end}}
2-
{{define "seo"}}<meta name="keywords" content="Go语言Wiki, Go语言中文网, Golang, Go中文社区, Golang中文社区, Go语言社区, Go语言学习园地">
3-
<meta name="description" content="Go语言知识汇总,Wiki资料总结,欢迎一起完善!">{{end}}
42
{{define "content"}}
53
<div class="row banner">
64
</div>

0 commit comments

Comments
 (0)