summaryrefslogtreecommitdiff
path: root/content/item.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-02 01:43:27 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-02 01:43:27 -0700
commit5ab38057f605a8655e111cb5b3f657973a661832 (patch)
tree0185436a1014ca5c9fe2bd65a84a5494d55080ec /content/item.go
parent0295a1486428daf4539b019a5ec68a0562ec6712 (diff)
adding default fields to Item and removing from post.go and template
Diffstat (limited to 'content/item.go')
-rw-r--r--content/item.go5
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"`
}