Skip to content

Commit

Permalink
💥 Feat: use twikoo to replace disqus.
Browse files Browse the repository at this point in the history
  • Loading branch information
bambooom committed Jan 3, 2024
1 parent 4b47c09 commit 6e1ba13
Show file tree
Hide file tree
Showing 158 changed files with 184 additions and 191 deletions.
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"mdast-util-to-string": "^4.0.0",
"reading-time": "^1.5.0",
"sanitize-html": "^2.11.0",
"tailwindcss": "^3.3.3"
"tailwindcss": "^3.3.3",
"twikoo": "^1.6.29"
},
"devDependencies": {
"@typescript-eslint/parser": "5.59.7",
Expand Down
14 changes: 14 additions & 0 deletions src/components/Comment.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
// https://github.com/withastro/astro/pull/8159/
const { shortname, identifier, url, title } = Astro.props;
---
<div id="twikoo-comments"></div>
<script>
// @ts-nocheck
import twikoo from "twikoo";
twikoo({
envId: 'https://zhuvi-dev-twikoo.netlify.app/.netlify/functions/twikoo',
el: '#twikoo-comments',
});
</script>
20 changes: 0 additions & 20 deletions src/components/Disqus.astro

This file was deleted.

2 changes: 1 addition & 1 deletion src/content/posts/2008-04-02-the-very-first-one.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: the very first one
publishedAt: 2008-04-02
description: "first diary on douban backup"
isPublish: true
disqus: y
comment: y
---

original link: https://www.douban.com/note/10139862/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2008-06-29-summer-kaze.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 夏日的風
publishedAt: 2008-06-29
disqus: y
comment: y
---

original link: https://www.douban.com/note/13939203/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2008-07-21-crowded.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 人潮擁擠
publishedAt: 2008-07-21
disqus: y
comment: y
---

original link: https://www.douban.com/note/15142909/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2008-08-02-uvic.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 起名字這件事很費腦筋
publishedAt: 2008-08-02
disqus: y
comment: y
---

original link: https://www.douban.com/note/15864420/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2008-08-28-over-the-rainbow.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: over the rainbow
publishedAt: 2008-08-28
disqus: y
comment: y
---

original link: https://www.douban.com/note/17284065/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2008-09-14-missing-uvic.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 不是不想念
publishedAt: 2008-09-14
disqus: y
comment: y
---

original link: https://www.douban.com/note/18163629/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2008-12-10-before-final-selfie.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: final期的文藝腔和無聊自拍
publishedAt: 2008-12-10
disqus: y
comment: y
---

original link: https://www.douban.com/note/22922931/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2009-03-07-AdultStoryBook.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: Adult StoryBook
publishedAt: 2009-03-07
disqus: y
comment: y
---

original link: https://www.douban.com/note/28295577/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2009-03-21-emo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 頗為清閒的這個星期,竹子你在幹嘛?
publishedAt: 2009-03-21
disqus: y
comment: y
---

original link: https://www.douban.com/note/29281265/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2009-06-30-life-hot-balloon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 人生就像热气球
publishedAt: 2009-06-30
disqus: y
comment: y
---

original link: https://www.douban.com/note/37767671/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2009-09-23-rpbf.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 哦耶~~~人品啊~~~
publishedAt: 2009-09-23
disqus: y
comment: y
---

original link: https://www.douban.com/note/45568500/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2010-01-15-emo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 看这落寞的人间
publishedAt: 2010-01-15
disqus: y
comment: y
---

original link: https://www.douban.com/note/56999423/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2010-03-13-douban-2yr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 我豆瓣了两年
publishedAt: 2010-03-13
disqus: y
comment: y
---

original link: https://www.douban.com/note/63296299/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2010-05-16-Dear-Victoria.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: Dear, Victoria
publishedAt: 2010-05-16
disqus: y
comment: y
---

original link: https://www.douban.com/note/71696068/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2010-09-18-olivia.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 思念如燕
publishedAt: 2010-09-18
disqus: y
comment: y
---

original link: https://www.douban.com/note/91558652/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2010-10-01-emo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 情绪的发泄也不是非要半夜
publishedAt: 2010-10-01
disqus: y
comment: y
---

original link: https://www.douban.com/note/93531449/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2010-11-11-happy-1111.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 苦逼的光棍们节日快乐!
publishedAt: 2010-11-11
disqus: y
comment: y
---

original link: https://www.douban.com/note/100054695/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2010-12-31-2010-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 12月31日写的才叫年终总结
publishedAt: 2010-12-31
disqus: y
comment: y
---

original link: https://www.douban.com/note/125442027/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-01-08-basically-hidden-youth.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 基本上我只是一個隱蔽的青年
publishedAt: 2011-01-08
disqus: y
comment: y
---

original link: https://www.douban.com/note/127940383/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-01-11-zhuzi-self-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 要写个有竹子特色的自我介绍
publishedAt: 2011-01-11
disqus: y
comment: y
---

original link: https://www.douban.com/note/128576759/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 【剧本】【阴道独白】
publishedAt: 2011-01-17
disqus: y
comment: y
---

original link: https://www.douban.com/note/488822022/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-02-24-hualao.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 我最近会很话痨
publishedAt: 2011-02-24
disqus: y
comment: y
---

original link: https://www.douban.com/note/136441261/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-03-04-keizoku.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 【继续】截图
publishedAt: 2011-03-04
disqus: y
comment: y
---

original link: https://www.douban.com/note/137956692/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-04-07-oh-shit.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: oh shit!我是真心想要戒豆瓣。
publishedAt: 2011-04-07
disqus: y
comment: y
---

original link: https://www.douban.com/note/144183893/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-06-15-taiwan-2-weeks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 台湾14天自助游流水账【适合早上起不来、喜欢暴走、有大把时间的人】
publishedAt: 2011-06-15
disqus: y
comment: y
---

original link: https://www.douban.com/note/156347076/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-06-19-habitual-rejection.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 习惯性拒绝
publishedAt: 2011-06-19
disqus: y
comment: y
---

original link: https://www.douban.com/note/157075972/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-06-26-nightwatch-vow.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: The Vow
publishedAt: 2011-06-26
disqus: y
comment: y
---

original link: https://www.douban.com/note/158341134/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-08-24-bday.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 生日坑爹特供☆
publishedAt: 2011-08-24
disqus: y
comment: y
---

original link: https://www.douban.com/note/168825372/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-10-01-emo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 一個小感慨
publishedAt: 2011-10-01
disqus: y
comment: y
---

original link: https://www.douban.com/note/175551581/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2011-12-02-somehow-angry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 有的时候不吐槽真的会死,憋死
publishedAt: 2011-12-02
disqus: y
comment: y
---

original link: https://www.douban.com/note/187905605/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2012-01-11-250-dimensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 所谓奔向二百五次元w
publishedAt: 2012-01-11
disqus: y
comment: y
---

original link: https://www.douban.com/note/195029139/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2012-02-18-geisha-performance-repo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 第一次看艺妓表演 repo
publishedAt: 2012-02-18
disqus: y
comment: y
---

original link: https://www.douban.com/note/201265084/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2012-03-03-blx-emo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 有的时候真觉得自己是BLX【纯发泄
publishedAt: 2012-03-03
disqus: y
comment: y
---

original link: https://www.douban.com/note/203300347/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2012-03-30-emo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 窝又来烦恼了
publishedAt: 2012-03-30
disqus: y
comment: y
---

original link: https://www.douban.com/note/207580899/
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2012-04-19-emo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isPublish: true
title: 419所以来一发!
publishedAt: 2012-04-19
disqus: y
comment: y
---

original link: https://www.douban.com/note/209881535/
Expand Down
Loading

0 comments on commit 6e1ba13

Please sign in to comment.