Browse Source

其他的页面完成

vue
mail_yanpeng@163.com 5 years ago
parent
commit
0c8723afb9
  1. 4
      controllers/BlogController.go
  2. 4
      static/css/common.css
  3. 4
      views/T.header.tpl
  4. 2
      views/blog.html
  5. 9
      views/us.html

4
controllers/BlogController.go

@ -205,8 +205,8 @@ func (this *BlogController) BlogsPage() {
if num <= 0 {
num = 1
}
if size < 15 {
size = 15
if size < 20 {
size = 20
}
if cat <= 0 {
cat = -1

4
static/css/common.css

@ -141,7 +141,6 @@ a{
}
.blog-root{
height: 100%;
width: 68%;
margin: 40px auto;
}
@ -587,6 +586,9 @@ img {
padding: 5px 0;
color: #323232;
}
.us-root a{
color: #28a3ef !important;
}
.blog-title{
display: flex;

4
views/T.header.tpl

@ -12,8 +12,8 @@
<script type="text/javascript" src="/static/js/vue.min.js"></script>
<link rel="stylesheet" href="/static/css/iview.css">
<script src="/static/js/iview.min.js"></script>
<script src="/static/js/jquery-1.11.1.min.js"/>
{{/* <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.4.0/jquery.min.js"></script>*/}}
{{/* <script src="/static/js/jquery-1.11.1.min.js"/>*/}}
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.4.0/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/layer.js"></script>
<link rel="stylesheet" href="/static/layui/css/layui.css">
{{/* <script type="text/javascript" src="/static/js/checkm.js"></script>*/}}

2
views/blog.html

@ -27,7 +27,7 @@
</div>
</div>
</div>
<div style="width: 100%" class="blog-detaile">
<div style="width: 100%;height: 100%" class="blog-detaile">
{{str2html .Blog.BlogHtml}}
</div>
</div>

9
views/us.html

@ -5,13 +5,14 @@
<body>
{{template "nav" .}}
<div class="us-root">
<div style="width: 450px">
<div style="width: 450px;">
<p>·项目源码: <a href="https://gitea.aiprose.com/nelson/beeblog" target="_blank">点击查看</a></p>
<p>·项目框架: </p>
<div style="margin-left: 15px">
<p><span>golang 1.11</span></p>
<p><span>beego:1.7.2 <a href="https://beego.me/" target="_blank">beego官网</a></span></p>
<p>layui: <a href="https://www.layui.com/" target="_blank">layui官网</a></p>
<p><span>golang@1.11</span></p>
<p><span>beego@1.7.2 <a href="https://beego.me/" target="_blank">beego官网</a></span></p>
<p><span>vue@2.6.10</span></p>
<p>iviewui@4.20: <a href="https://iviewui.com/" target="_blank">iviewui官网</a></p>
<p>富文本编辑器: <a href="http://www.wangeditor.com/" target="_blank">wangeditor官网</a></p>
<p>数据库: mysql(5.5.60-MariaDB)</p>
</div>

Loading…
Cancel
Save