Skip to content

Commit

Permalink
fix: function typo Permarlink -> Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tatthien committed Mar 5, 2024
1 parent 62a1d47 commit 95c9a02
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions model/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ func (posts Posts) FindByTag(tag string) Posts {
type ByDate []Post

type FrontMatter struct {
Title string `mapstructure:"title"`
Date time.Time `mapstructure:"date"`
Tags []string `mapstructure:"tags"`
Draft bool `mapstructure:"draft"`
Description string `mapstureture:"description"`
Title string `mapstructure:"title"`
Date time.Time `mapstructure:"date"`
Tags []string `mapstructure:"tags"`
Draft bool `mapstructure:"draft"`
Description string `mapstructure:"description"`
FeaturedImage string `mapsstructure:"featuredImage"`
}

func (post *Post) Permarlink() string {
func (post *Post) Permalink() string {
return fmt.Sprintf("/%s/%s.html", post.Type, post.Slug)
}

Expand Down

0 comments on commit 95c9a02

Please sign in to comment.