Sfoglia il codice sorgente

fix:样式修改

master
燕鹏 3 anni fa
parent
commit
6b21822cb9
  1. 4
      controllers/IndexController.go
  2. 1
      static/css/common.css
  3. 2
      static/css/common.min.css
  4. 2
      views/index.html

4
controllers/IndexController.go

@ -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")

1
static/css/common.css

@ -252,7 +252,6 @@ img {
}
.home-container{
height: 100%;
margin: 50px 5% 60px 5%;
}
.home-container hr{

2
static/css/common.min.css

File diff suppressed because one or more lines are too long

2
views/index.html

@ -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">

Caricamento…
Annulla
Salva