remove Post.Render

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2024-11-29 08:02:26 -05:00
parent 1981a291aa
commit e2dd1afaa3
2 changed files with 3 additions and 8 deletions

View file

@ -13,7 +13,6 @@ import (
"strings"
"sync"
"github.com/aymerick/raymond"
"github.com/mitchellh/mapstructure"
"github.com/yuin/goldmark"
emoji "github.com/yuin/goldmark-emoji"
@ -40,10 +39,6 @@ type Post struct {
Image []byte
}
func (p *Post) Render(tpl *raymond.Template) (string, error) {
return tpl.Exec(p)
}
func (p *Post) String() string {
return p.Slug
}