Skip to content

Commit

Permalink
🐛 修复关于页面评论显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Skywt2003 committed Mar 4, 2024
1 parent 99949f0 commit aada74b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/blog/Comments.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useRef, useState, useEffect } from "preact/hooks";
import { useState, useEffect } from "preact/hooks";
import Comment from "./Comment.tsx";

export default function Comments(props: { slug: string; permalink: string }) {
Expand Down Expand Up @@ -35,6 +35,7 @@ export default function Comments(props: { slug: string; permalink: string }) {
setError(true);
});
}, []);

return (
<>
{error ? (
Expand Down
1 change: 1 addition & 0 deletions src/layouts/Post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import Comments from "../components/blog/Comments.tsx";
<>
<hr class="my-8" />
<Comments
client:load
slug={frontmatter.typechoSlug}
permalink={"https://blog.skywt.cn/" + frontmatter.typechoSlug}
/>
Expand Down
1 change: 0 additions & 1 deletion src/pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ typechoSlug: about
- 2022.03.26 启用全新设计开发的基于 pico.css 的 Daydream Typecho 主题。
- 2022.06.21 启用一个 WordPress 博客 [whisper.skywt.cn](https://whisper.skywt.cn/),主要用来放一些碎碎念。
- 2022.12.26 现在可以[用邮件订阅博客](https://mailchi.mp/97e1f54049cd/subscribe)啦。由 MailChimp 支持。
<!-- - 2023.02.19 博客收录至「[寻我](https://seekbetter.me/)」。 -->
- 2023.02.26 注册备用的免费域名 skywt.eu.org。
- 2023.06.28 注册备用的域名 skywt.net。
- 2024.02.06 启用基于 Astro.js 开发的全新个人主页 Daydreamer。
Expand Down

0 comments on commit aada74b

Please sign in to comment.