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