@ -11,9 +11,9 @@ type IndexController struct {
func (this *IndexController) Get() {
blogService := service.BlogService{}
timeBlog, _ := blogService.IndexBlogs(20, 0)
timeBlog, _ := blogService.IndexBlogs(27, 0)
this.Data["TimeBlog"] = timeBlog
browsBlog, _ := blogService.IndexBlogs(20, 1)
browsBlog, _ := blogService.IndexBlogs(27, 1)
this.Data["BrowsBlog"] = browsBlog
this.Data["UserId"] = this.GetSession("userid")
@ -252,7 +252,6 @@ img {
}
.home-container{
height: 100%;
margin: 50px 5% 60px 5%;
.home-container hr{
@ -3,7 +3,7 @@
<title>码农随笔· IT技术博客</title>
</head>
<body>
<div id="vue-app">
<div id="vue-app" style="height: 100%">
{{template "nav" .}}
<div class="blog-root">
<div class="jumbotron" style="margin-top: 50px;margin-bottom: 10px">