diff --git a/views/blog.html b/views/blog.html index 4c04dee..d0bbfc3 100644 --- a/views/blog.html +++ b/views/blog.html @@ -134,7 +134,7 @@ } }, 'json') }) - debugger + /*百度收录*/ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; diff --git a/views/blogs.html b/views/blogs.html index e65fe6e..f4f0cb3 100644 --- a/views/blogs.html +++ b/views/blogs.html @@ -1,5 +1,5 @@ {{template "header"}} - + 博客列表 - 个人随笔 diff --git a/views/index.html b/views/index.html index a9dcd9a..8829a3a 100644 --- a/views/index.html +++ b/views/index.html @@ -1,5 +1,5 @@ {{template "header"}} - + 首页 - 个人随笔 @@ -47,4 +47,31 @@ {{template "footer"}} + \ No newline at end of file diff --git a/views/login.html b/views/login.html index 22482a1..41051e3 100644 --- a/views/login.html +++ b/views/login.html @@ -1,5 +1,5 @@ {{template "header"}} - + 登录 - 个人随笔 @@ -55,7 +55,7 @@ console.log(data) if (data.Status == 1) { layer.msg(data.Msg, {icon: 5}); - }else{ + } else { layer.msg("登录成功", {icon: 6}); window.location.href = "/" } @@ -63,4 +63,31 @@ }) }) + \ No newline at end of file diff --git a/views/map.html b/views/map.html index 0b34056..799a102 100644 --- a/views/map.html +++ b/views/map.html @@ -1,5 +1,5 @@ {{template "header"}} - + 谷歌影像图 - 个人随笔 @@ -53,5 +53,30 @@ }) infoWindow.open(mapObj, new AMap.LngLat(108.963148, 34.232709)) }) + $(function () { + /*百度收录*/ + var bp = document.createElement('script'); + var curProtocol = window.location.protocol.split(':')[0]; + if (curProtocol === 'https') { + bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; + } + else { + bp.src = 'http://push.zhanzhang.baidu.com/push.js'; + } + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(bp, s); + + /*360收录*/ + var qihuo = document.createElement('script'); + if (curProtocol === 'https') { + qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c'; + } + else { + qihuo.src = 'http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4'; + } + qihuo.id = "sozz" + var s = document.getElementsByTagName("script")[1]; + s.parentNode.insertBefore(qihuo, s); + }) \ No newline at end of file diff --git a/views/note.html b/views/note.html index 5b57027..3347c9c 100644 --- a/views/note.html +++ b/views/note.html @@ -5,7 +5,7 @@ + content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,aiprose"> {{/**/}} 我的笔记 - 个人随笔 diff --git a/views/regist.html b/views/regist.html index 03f7c43..2e1d921 100644 --- a/views/regist.html +++ b/views/regist.html @@ -1,5 +1,5 @@ {{template "header"}} - + 注册 - 个人随笔 diff --git a/views/us.html b/views/us.html index ae8235e..217b0d4 100644 --- a/views/us.html +++ b/views/us.html @@ -1,5 +1,5 @@ {{template "header"}} - + 关于我们 - 个人随笔 @@ -10,24 +10,24 @@

个人随笔2.0(golang)版本正式上线

-
-

·项目源码: 点击查看

-

·项目框架:

-
-

golang 1.11

-

beego:1.7.2 beego官网

-

阿里UI: sui3官网

-

富文本编辑器: wangeditor官网

-

数据库: mysql(5.5.60-MariaDB)

-
-

·项目搭建步骤:

-
-

1.安装配置golang 最新版本 (开发最好安装一下bee)

-

2.go get github.com/astaxie/beego

-

3.go get github.com/go-sql-driver/mysql

-

4.windows环境需要安装gcc gcc下载地址

-
-
+
+

·项目源码: 点击查看

+

·项目框架:

+
+

golang 1.11

+

beego:1.7.2 beego官网

+

阿里UI: sui3官网

+

富文本编辑器: wangeditor官网

+

数据库: mysql(5.5.60-MariaDB)

+
+

·项目搭建步骤:

+
+

1.安装配置golang 最新版本 (开发最好安装一下bee)

+

2.go get github.com/astaxie/beego

+

3.go get github.com/go-sql-driver/mysql

+

4.windows环境需要安装gcc gcc下载地址

+
+
@@ -37,4 +37,31 @@ {{template "footer"}}
+ \ No newline at end of file diff --git a/views/user.html b/views/user.html index 67c3bc0..b2d2acb 100644 --- a/views/user.html +++ b/views/user.html @@ -1,5 +1,6 @@ {{template "header"}} - + 【{{.User.NickName}}】个人主页 - 个人随笔 @@ -27,8 +28,10 @@
排序: - 发布时间 - 访问量 + 发布时间 + 访问量
{{range .Page.List}}
@@ -60,4 +63,31 @@
+ \ No newline at end of file