diff --git a/backend/pb_migrations/1777229304_updated_posts.js b/backend/pb_migrations/1777229304_updated_posts.js new file mode 100644 index 0000000..ce56447 --- /dev/null +++ b/backend/pb_migrations/1777229304_updated_posts.js @@ -0,0 +1,27 @@ +/// +migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_1125843985") + + // add field + collection.fields.addAt(12, new Field({ + "hidden": false, + "id": "number300981383", + "max": null, + "min": null, + "name": "views", + "onlyInt": false, + "presentable": false, + "required": false, + "system": false, + "type": "number" + })) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("pbc_1125843985") + + // remove field + collection.fields.removeById("number300981383") + + return app.save(collection) +}) diff --git a/frontend/src/components/blog/BlogCard.astro b/frontend/src/components/blog/BlogCard.astro index 0509663..2f8726f 100644 --- a/frontend/src/components/blog/BlogCard.astro +++ b/frontend/src/components/blog/BlogCard.astro @@ -54,7 +54,7 @@ const imageUrl = image || '/images/blog/default.avif'; - {readmeTime || readTime} + {readmeTime || readTime} мин. diff --git a/frontend/src/components/blog/RelatedPosts.astro b/frontend/src/components/blog/RelatedPosts.astro index 57fab8c..dfe555d 100644 --- a/frontend/src/components/blog/RelatedPosts.astro +++ b/frontend/src/components/blog/RelatedPosts.astro @@ -51,7 +51,7 @@ const filteredPosts = currentSlug

{post.description}

{formatDate(post.date)} - {post.readTime} мин + {post.readTime} мин.
diff --git a/frontend/src/layouts/ArticleLayout.astro b/frontend/src/layouts/ArticleLayout.astro index f906260..493cab6 100644 --- a/frontend/src/layouts/ArticleLayout.astro +++ b/frontend/src/layouts/ArticleLayout.astro @@ -105,7 +105,7 @@ const { - {readmeTime} мин + {readmeTime} мин.