feat: image gallery (#2)
/ publish (push) Successful in 4m4s

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-06-01 14:07:50 +02:00
parent ee3eba3cd9
commit 763163c24e
30 changed files with 513 additions and 44 deletions
+8 -3
View File
@@ -56,9 +56,14 @@ func (s *Service) getPageHeaders(ctx context.Context, uid string) (page PageHead
}
}
page.md, err = s.fs.Read(contentMD.Path())
if err != nil {
return
if contentMD != nil {
page.md, err = s.fs.Read(contentMD.Path())
if err != nil {
return
}
} else {
page.md = []byte("# ...")
}
title := titleRGX.FindStringSubmatch(string(page.md))