Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AtomHref string
View Source
var RssHref string
Functions ¶
func AttachAdmin ¶
func AttachAdmin(url string)
func RenderPost ¶
Render the post, using the cached ContentRendered if available, or generating and re-saving it to the database if not
Types ¶
type Entry ¶
type Entry struct { Id bson.ObjectId `bson:"_id,omitempty"` SourceId string Url string Type string Title string Data string SummaryRendered string ContentRendered string Timestamp uint64 }
func (*Entry) Collection ¶
func (*Entry) SummaryRender ¶
type Page ¶
type Page struct { Id bson.ObjectId `bson:"_id,omitempty"` Url string Content string ContentRendered string }
Flatpage Model
func (*Page) Collection ¶
func (*Page) FromParams ¶
Instantiate a Page object from POST parameters
type PagesPanel ¶
type PagesPanel struct{}
func (*PagesPanel) Render ¶
func (pp *PagesPanel) Render() string
type Post ¶
type Post struct { Id bson.ObjectId `bson:"_id,omitempty"` Title string Slug string Content string ContentRendered string Summary string Tags []string Timestamp uint64 Published int }
Blog Post Model
func LatestPost ¶
func LatestPost() *Post
A shortcut to return the latest blog post (or nil if there aren't any)
func (*Post) Collection ¶
func (*Post) FromParams ¶
Instantiate a post object from POST parameters
func (*Post) NaturalTime ¶
type UnpublishedPanel ¶
type UnpublishedPanel struct{}
func (*UnpublishedPanel) Render ¶
func (up *UnpublishedPanel) Render() string
Click to show internal directories.
Click to hide internal directories.