From 3c237fc659c2829042407697ca7aa3e1442a5719 Mon Sep 17 00:00:00 2001 From: Samuel Johnson Date: Tue, 25 Nov 2025 19:47:20 -0500 Subject: Add post editing interface --- internal/models/post.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'internal/models/post.go') 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 } -- cgit v1.2.3