feat(gallery): routes

This commit is contained in:
schreifuchs committed 2026-05-31 10:46:07 +02:00
1 parent ee3eba3cd9
commit 9282f1f634
22 files changed
+223 -34

No files matched your search

+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))