Skip to content

Commit

Permalink
fix: Update content extraction to include PostMenu in getI18NFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Laisky committed Sep 19, 2024
1 parent b6b2224 commit 6622b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/web/blog/service/posts.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (s *Blog) getI18NFilter(ctx context.Context,
p.Markdown = p.I18N.EnUs.PostMarkdown
p.Title = p.I18N.EnUs.PostTitle

if p.I18N.EnUs.PostContent == "" {
if p.I18N.EnUs.PostContent == "" || p.I18N.EnUs.PostMenu == "" {
p.I18N.EnUs.PostContent = ParseMarkdown2HTML([]byte(p.Markdown))
p.I18N.EnUs.PostMenu = ExtractMenu(p.I18N.EnUs.PostContent)

Expand Down

0 comments on commit 6622b22

Please sign in to comment.