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

Method FormattedDisplayTitle

posts.go:233–238  ·  view source on GitHub ↗

FormattedDisplayTitle dynamically generates a title from the Post's contents if it doesn't already have an explicit title.

()

Source from the content-addressed store, hash-verified

231// FormattedDisplayTitle dynamically generates a title from the Post's contents if it
232// doesn't already have an explicit title.
233func (p *Post) FormattedDisplayTitle() template.HTML {
234 if p.HTMLTitle != "" {
235 return p.HTMLTitle
236 }
237 return template.HTML(p.DisplayTitle())
238}
239
240// Summary gives a shortened summary of the post based on the post's title,
241// especially for display in a longer list of posts. It extracts a summary for

Callers 1

emailPostFunction · 0.80

Calls 1

DisplayTitleMethod · 0.95

Tested by

no test coverage detected