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