Example #1
0
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,
	}
}
Example #2
0
func (e Entry) Rendered() string {
	return markdown.Render(e.Body)
}