MCPcopy Index your code
hub / github.com/writefreely/writefreely / Excerpt

Method Excerpt

posts.go:273–275  ·  view source on GitHub ↗

Excerpt shows any text that comes before a (more) tag. TODO: use HTMLExcerpt in templates instead of this method

()

Source from the content-addressed store, hash-verified

271// Excerpt shows any text that comes before a (more) tag.
272// TODO: use HTMLExcerpt in templates instead of this method
273func (p *Post) Excerpt() template.HTML {
274 return p.HTMLExcerpt
275}
276
277func (p *Post) CreatedDate() string {
278 return p.Created.Format("2006-01-02")

Callers 1

PreviewObjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected