diff --git a/public/images/recaps/switch-blog-to-nextjs/astro-actions.png b/public/images/recaps/switch-blog-to-nextjs/astro-actions.png new file mode 100644 index 0000000..c3b16df Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/astro-actions.png differ diff --git a/public/images/recaps/switch-blog-to-nextjs/astro-uploader.png b/public/images/recaps/switch-blog-to-nextjs/astro-uploader.png new file mode 100644 index 0000000..eb8780b Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/astro-uploader.png differ diff --git a/public/images/recaps/switch-blog-to-nextjs/astro.jpg b/public/images/recaps/switch-blog-to-nextjs/astro.jpg new file mode 100644 index 0000000..ebcd37f Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/astro.jpg differ diff --git a/public/images/recaps/switch-blog-to-nextjs/contentlayer.png b/public/images/recaps/switch-blog-to-nextjs/contentlayer.png new file mode 100644 index 0000000..3d830db Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/contentlayer.png differ diff --git a/public/images/recaps/switch-blog-to-nextjs/next.js.png b/public/images/recaps/switch-blog-to-nextjs/next.js.png new file mode 100644 index 0000000..bc4296f Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/next.js.png differ diff --git a/public/images/recaps/switch-blog-to-nextjs/open-graph.png b/public/images/recaps/switch-blog-to-nextjs/open-graph.png new file mode 100644 index 0000000..5ea45cd Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/open-graph.png differ diff --git a/public/images/recaps/switch-blog-to-nextjs/opendal.png b/public/images/recaps/switch-blog-to-nextjs/opendal.png new file mode 100644 index 0000000..609b0e2 Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/opendal.png differ diff --git a/public/images/recaps/switch-blog-to-nextjs/replace-artalk.png b/public/images/recaps/switch-blog-to-nextjs/replace-artalk.png new file mode 100644 index 0000000..fdaacf7 Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/replace-artalk.png differ diff --git a/public/images/recaps/switch-blog-to-nextjs/velite.jpg b/public/images/recaps/switch-blog-to-nextjs/velite.jpg new file mode 100644 index 0000000..c307b56 Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/velite.jpg differ diff --git a/public/images/recaps/switch-blog-to-nextjs/zeabur-astro.png b/public/images/recaps/switch-blog-to-nextjs/zeabur-astro.png new file mode 100644 index 0000000..dffb38f Binary files /dev/null and b/public/images/recaps/switch-blog-to-nextjs/zeabur-astro.png differ diff --git a/src/components/comment/Comments.astro b/src/components/comment/Comments.astro index 462a5f9..bde653d 100644 --- a/src/components/comment/Comments.astro +++ b/src/components/comment/Comments.astro @@ -1,7 +1,6 @@ --- -import { loadComments } from '@/components/comment/artalk'; +import { increaseViews, loadComments } from '@/components/comment/artalk'; import Comment from '@/components/comment/Comment.astro'; -import { increaseViews } from '@/helpers/db/query'; import { urlJoin } from '@/helpers/tools'; import options from '@/options'; @@ -15,7 +14,7 @@ const { commentKey, title } = Astro.props; const comments = await loadComments(commentKey, title, 0); // Increase the PV. -await increaseViews(commentKey); +await increaseViews(commentKey, title); ---