mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
SEO for collection page.
This commit is contained in:
@@ -133,8 +133,8 @@ func serveIndexHtml(c fiber.Ctx) error {
|
|||||||
preFetchData = url.PathEscape(string(preFetchDataJson))
|
preFetchData = url.PathEscape(string(preFetchDataJson))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if strings.HasPrefix(path, "/collections/") {
|
} else if strings.HasPrefix(path, "/collection/") {
|
||||||
collectionIDStr := strings.TrimPrefix(path, "/collections/")
|
collectionIDStr := strings.TrimPrefix(path, "/collection/")
|
||||||
collectionID, err := strconv.Atoi(collectionIDStr)
|
collectionID, err := strconv.Atoi(collectionIDStr)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
coll, err := service.GetCollectionByID(uint(collectionID))
|
coll, err := service.GetCollectionByID(uint(collectionID))
|
||||||
|
Reference in New Issue
Block a user