adjusted css for blog posts page

This commit is contained in:
rawleyIfowler
2022-02-23 17:14:15 -06:00
parent c5ccbec4c7
commit 4f9fcdc898
2 changed files with 3 additions and 3 deletions

View File

@@ -22,8 +22,8 @@ import (
type BlogPost struct {
gorm.Model
Url string `json:"url" gorm:"primaryKey"`
Title string `json:"title"`
Url string `json:"url" gorm:"primaryKey" gorm:"unique"`
Title string `json:"title" gorm:"unique"`
Date string `json:"date"`
Content string `json:"content"`
Comments []Comment `gorm:"foreignKey:Id"`

View File

@@ -131,12 +131,12 @@ a:hover:after {
}
.post-record {
padding-left: 6px;
padding-right: 6px;
width: 200px + 2vw;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 12px;
}