aboutsummaryrefslogtreecommitdiff
path: root/internal/models/post.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models/post.go')
-rw-r--r--internal/models/post.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/models/post.go b/internal/models/post.go
index d7b006d..d7f1aaa 100644
--- a/internal/models/post.go
+++ b/internal/models/post.go
@@ -1,10 +1,15 @@
package models
-import "html/template"
+import (
+ "html/template"
+ "time"
+)
type Post struct {
Id int
Name string
- Time string
+ Time time.Time
+ FormattedTime string
+ Brief template.HTML
Content template.HTML
}