diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-02 01:43:27 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-02 01:43:27 -0700 |
commit | 5ab38057f605a8655e111cb5b3f657973a661832 (patch) | |
tree | 0185436a1014ca5c9fe2bd65a84a5494d55080ec /content/item.go | |
parent | 0295a1486428daf4539b019a5ec68a0562ec6712 (diff) |
adding default fields to Item and removing from post.go and template
Diffstat (limited to 'content/item.go')
-rw-r--r-- | content/item.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/item.go b/content/item.go index 08d6359..e96a34e 100644 --- a/content/item.go +++ b/content/item.go @@ -2,6 +2,7 @@ package content // Item should only be embedded into content type structs. type Item struct { - ID int `json:"id"` - Slug string `json:"slug"` + ID int `json:"id"` + Slug string `json:"slug"` + Timestamp string `json:"timestamp"` } |