func ctx(conf *Conf, db database.Db, r *http.Request, loggedIn bool) Context { return Context{ Entries: db.Get(), LoggedIn: loggedIn, Title: conf.Title, Description: markdown.Render(conf.Description), SafeDesc: conf.Description, Url: conf.URL, } }
func (e Entry) Rendered() string { return markdown.Render(e.Body) }