diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-09-21 03:44:24 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-09-21 03:44:24 -0700 |
commit | f3c68b123f426cb83955a78593ce7cc5b346128c (patch) | |
tree | 41ea67c1959451f4f507fd7f3a019f4658c4412b /content | |
parent | 2c84dd21f24fe68ccd0b0cfcb0d7cb683701ef8b (diff) |
added admin interface and overview of content and types. more code reorganization.
Diffstat (limited to 'content')
-rw-r--r-- | content/post.go | 3 |
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 } |