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 { 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"`

View File

@@ -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;
} }