summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-09-21 03:44:24 -0700
committerSteve Manuel <nilslice@gmail.com>2016-09-21 03:44:24 -0700
commitf3c68b123f426cb83955a78593ce7cc5b346128c (patch)
tree41ea67c1959451f4f507fd7f3a019f4658c4412b /content
parent2c84dd21f24fe68ccd0b0cfcb0d7cb683701ef8b (diff)
added admin interface and overview of content and types. more code reorganization.
Diffstat (limited to 'content')
-rw-r--r--content/post.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/post.go b/content/post.go
index 7bb36f6..4690f41 100644
--- a/content/post.go
+++ b/content/post.go
@@ -24,6 +24,9 @@ func init() {
// ContentID partially implements editor.Editable
func (p *Post) ContentID() int { return p.ID }
+// ContentName partially implements editor.Editable
+func (p *Post) ContentName() string { return p.Title }
+
// Editor partially implements editor.Editable
func (p *Post) Editor() *editor.Editor { return &p.editor }