Skip to content

Commit

Permalink
feat: Upgrade Go version in Dockerfile and add note for Markdown hand…
Browse files Browse the repository at this point in the history
…ling in posts
  • Loading branch information
Laisky committed Oct 8, 2024
1 parent 8229655 commit e4cbc35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.1-bullseye AS gobuild
FROM golang:1.23.2-bullseye AS gobuild

# install dependencies
RUN apt-get update \
Expand Down
1 change: 1 addition & 0 deletions internal/web/blog/service/posts.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ func (s *Blog) getI18NFilter(ctx context.Context,
zap.String("post", p.ID.String()))

// upgrade to new implementation
// be noticed that p.Markdown could be empty!
if p.Markdown != "" &&
p.ModifiedAt.Before(time.Date(2024, 9, 23, 0, 0, 0, 0, time.UTC)) {
p.Content = ParseMarkdown2HTML([]byte(p.Markdown))
Expand Down

0 comments on commit e4cbc35

Please sign in to comment.