adjusted css for blog posts page
This commit is contained in:
@@ -22,8 +22,8 @@ import (
|
|||||||
|
|
||||||
type BlogPost struct {
|
type BlogPost struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
Url string `json:"url" gorm:"primaryKey"`
|
Url string `json:"url" gorm:"primaryKey" gorm:"unique"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title" gorm:"unique"`
|
||||||
Date string `json:"date"`
|
Date string `json:"date"`
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
Comments []Comment `gorm:"foreignKey:Id"`
|
Comments []Comment `gorm:"foreignKey:Id"`
|
||||||
|
|||||||
@@ -131,12 +131,12 @@ a:hover:after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-record {
|
.post-record {
|
||||||
padding-left: 6px;
|
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
width: 200px + 2vw;
|
width: 200px + 2vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user