From 48f47310204df4cb1bdb5ee8db761ab942b20527 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 17 Oct 2016 14:30:30 -0700 Subject: adding initial updates to provide better time recording for post editing & creation --- content/item.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/item.go b/content/item.go index e96a34e..09f0760 100644 --- a/content/item.go +++ b/content/item.go @@ -1,8 +1,13 @@ package content +import "time" + // Item should only be embedded into content type structs. type Item struct { - ID int `json:"id"` - Slug string `json:"slug"` - Timestamp string `json:"timestamp"` + ID int `json:"id"` + Slug string `json:"slug"` + Time string `json:"time"` + Date string `json:"date"` + Timestamp time.Time `json:"timestamp"` + Updated time.Time `json:"updated"` } -- cgit v1.2.3