diff --git a/content/zh-cn/memo/1.md b/content/zh-cn/memo/1.md index 351b176..5ea38e4 100644 --- a/content/zh-cn/memo/1.md +++ b/content/zh-cn/memo/1.md @@ -1,6 +1,5 @@ --- title: "8月27." -slug: "life8月27" date: 2013-08-27T11:44:21.000Z --- diff --git a/content/zh-cn/memo/10.md b/content/zh-cn/memo/10.md index 89cb6a4..d6387f3 100644 --- a/content/zh-cn/memo/10.md +++ b/content/zh-cn/memo/10.md @@ -1,6 +1,5 @@ --- title: "拳头" -slug: "life拳头" date: 2016-11-12T03:58:00.000Z --- diff --git a/content/zh-cn/memo/11.md b/content/zh-cn/memo/11.md index d4bfa4a..d0d6d3b 100644 --- a/content/zh-cn/memo/11.md +++ b/content/zh-cn/memo/11.md @@ -1,6 +1,5 @@ --- title: "热" -slug: "life热" date: 2018-01-18T06:27:00.000Z --- diff --git a/content/zh-cn/memo/12.md b/content/zh-cn/memo/12.md index 1598fbb..65f8c8a 100644 --- a/content/zh-cn/memo/12.md +++ b/content/zh-cn/memo/12.md @@ -1,6 +1,5 @@ --- title: "上海" -slug: "life上海" date: 2017-12-31T03:17:00.000Z --- diff --git a/content/zh-cn/memo/13.md b/content/zh-cn/memo/13.md index 6659904..5d6c9b6 100644 --- a/content/zh-cn/memo/13.md +++ b/content/zh-cn/memo/13.md @@ -1,6 +1,5 @@ --- title: "下雨了" -slug: "life下雨了" date: 2018-01-06T03:04:00.000Z --- diff --git a/content/zh-cn/memo/14.md b/content/zh-cn/memo/14.md index 621f236..0dec7f3 100644 --- a/content/zh-cn/memo/14.md +++ b/content/zh-cn/memo/14.md @@ -1,6 +1,5 @@ --- title: "写在30岁之后" -slug: "life写在30岁之后" date: 2017-07-10T05:27:00.000Z --- diff --git a/content/zh-cn/memo/15.md b/content/zh-cn/memo/15.md index 99f0724..8bca6a9 100644 --- a/content/zh-cn/memo/15.md +++ b/content/zh-cn/memo/15.md @@ -1,6 +1,5 @@ --- title: "写在感恩节的话" -slug: "life写在感恩节的话" date: 2016-11-24T11:34:00.000Z --- diff --git a/content/zh-cn/memo/16.md b/content/zh-cn/memo/16.md index b09e345..bcf9643 100644 --- a/content/zh-cn/memo/16.md +++ b/content/zh-cn/memo/16.md @@ -1,6 +1,5 @@ --- title: "写在加班结束前" -slug: "life写在加班结束前" date: 2011-08-11T12:28:00.000Z --- diff --git a/content/zh-cn/memo/17.md b/content/zh-cn/memo/17.md index 10f9f0d..7f714f8 100644 --- a/content/zh-cn/memo/17.md +++ b/content/zh-cn/memo/17.md @@ -1,6 +1,5 @@ --- title: "写在愚人节之后" -slug: "life写在愚人节之后" date: 2015-04-01T17:45:18.000Z --- diff --git a/content/zh-cn/memo/18.md b/content/zh-cn/memo/18.md index 14c2f62..8241d66 100644 --- a/content/zh-cn/memo/18.md +++ b/content/zh-cn/memo/18.md @@ -1,6 +1,6 @@ --- title: "新的一年2017" -slug: "life新的一年2017" +slug: "18" date: 2016-12-31T19:33:00.000Z --- diff --git a/content/zh-cn/memo/19.md b/content/zh-cn/memo/19.md index 9ffc5ad..47078d0 100644 --- a/content/zh-cn/memo/19.md +++ b/content/zh-cn/memo/19.md @@ -1,6 +1,5 @@ --- title: "又是一年冬季" -slug: "life又是一年冬季" date: 2017-12-10T13:05:00.000Z --- diff --git a/content/zh-cn/memo/2.md b/content/zh-cn/memo/2.md index 83784ee..b25d2b0 100644 --- a/content/zh-cn/memo/2.md +++ b/content/zh-cn/memo/2.md @@ -1,6 +1,5 @@ --- title: "2006-2016" -slug: "life2006-2016" date: 2016-11-02T10:39:10.000Z --- diff --git a/content/zh-cn/memo/20.md b/content/zh-cn/memo/20.md index f4bff1a..fcc36e5 100644 --- a/content/zh-cn/memo/20.md +++ b/content/zh-cn/memo/20.md @@ -1,6 +1,5 @@ --- title: "中秋节快乐" -slug: "life中秋节快乐" date: 2011-09-12T15:56:37.000Z --- diff --git a/content/zh-cn/memo/200.md b/content/zh-cn/memo/200.md index 4f02385..f22e55e 100644 --- a/content/zh-cn/memo/200.md +++ b/content/zh-cn/memo/200.md @@ -1,11 +1,6 @@ --- title: "终于明白" -description: date: 2007-08-13T18:39:23+08:00 -cover: -hidden: false -comments: true -draft: true --- 我还不知道自己要什么.能做什么.我还有什么资格要求爱与被爱? \ No newline at end of file diff --git a/content/zh-cn/memo/201.md b/content/zh-cn/memo/201.md index c8199c1..fc2caf6 100644 --- a/content/zh-cn/memo/201.md +++ b/content/zh-cn/memo/201.md @@ -1,10 +1,5 @@ --- title: "回家 " -description: date: 2008-01-09T18:44:20+08:00 -cover: -hidden: false -comments: true -draft: true --- 昨天考完就放假了。凌晨停电到放假的那一刻。于是在无所事事的情况下决定去建始。这里的****很高,花了一百多以后决定还是回家看电视的好 \ No newline at end of file diff --git a/content/zh-cn/memo/202.md b/content/zh-cn/memo/202.md index fa9b79f..cb7cb2f 100644 --- a/content/zh-cn/memo/202.md +++ b/content/zh-cn/memo/202.md @@ -1,11 +1,6 @@ --- title: "勿念" -description: date: 2007-12-22T18:45:49+08:00 -cover: -hidden: false -comments: true -draft: true --- 左眼角膜发炎.尚好.虽隐隐疼痛.相信很快就好.勿念. \ No newline at end of file diff --git a/content/zh-cn/memo/21.md b/content/zh-cn/memo/21.md index 12b0421..46cd5a2 100644 --- a/content/zh-cn/memo/21.md +++ b/content/zh-cn/memo/21.md @@ -1,6 +1,5 @@ --- title: "周日" -slug: "life周日" date: 2016-05-29T14:37:00.000Z --- diff --git a/content/zh-cn/memo/22.md b/content/zh-cn/memo/22.md index b1bd76d..a982871 100644 --- a/content/zh-cn/memo/22.md +++ b/content/zh-cn/memo/22.md @@ -1,6 +1,5 @@ --- title: "小七呀" -slug: "xiao-qi-1" date: 2019-01-12T14:38:00.000Z --- diff --git a/content/zh-cn/memo/23.md b/content/zh-cn/memo/23.md index e91f938..a4b3926 100644 --- a/content/zh-cn/memo/23.md +++ b/content/zh-cn/memo/23.md @@ -1,6 +1,5 @@ --- title: "珠海的早晨" -slug: "zhu-hai-de-zao-chen" date: 2017-12-02T02:17:00.000Z --- diff --git a/content/zh-cn/memo/32.md b/content/zh-cn/memo/32.md index ace6e67..e50f7f8 100644 --- a/content/zh-cn/memo/32.md +++ b/content/zh-cn/memo/32.md @@ -7,7 +7,7 @@ date: 2017-06-29T09:53:00.000Z --- -![请输入图片描述][1] +![Everybody][1] 这首歌被我用来做手机铃声,每次响起音乐就情不自禁看手机。 diff --git a/content/zh-cn/memo/4.md b/content/zh-cn/memo/4.md index 587af32..cdbad0b 100644 --- a/content/zh-cn/memo/4.md +++ b/content/zh-cn/memo/4.md @@ -1,6 +1,5 @@ --- title: "半年没有更新博客了" -slug: "life半年没有更新博客了" date: 2013-01-30T14:11:00.000Z --- diff --git a/content/zh-cn/memo/5.md b/content/zh-cn/memo/5.md index 72fdee0..24862e6 100644 --- a/content/zh-cn/memo/5.md +++ b/content/zh-cn/memo/5.md @@ -1,6 +1,5 @@ --- title: "到深圳的第一天" -slug: "life到深圳的第一天" date: 2018-03-02T10:09:41.000Z --- diff --git a/content/zh-cn/memo/6.md b/content/zh-cn/memo/6.md index 6785d7b..8028e2d 100644 --- a/content/zh-cn/memo/6.md +++ b/content/zh-cn/memo/6.md @@ -1,6 +1,5 @@ --- title: "冬日-武汉" -slug: "life冬日-武汉" date: 2018-03-31T10:02:00.000Z --- diff --git a/content/zh-cn/memo/7.md b/content/zh-cn/memo/7.md index 09702df..cb6de6f 100644 --- a/content/zh-cn/memo/7.md +++ b/content/zh-cn/memo/7.md @@ -4,6 +4,6 @@ date: 2016-12-29 14:35:23 --- 值此辞旧迎新之际,祝大家。。。 鸡年大吉吧。 -![](https://www.wen.st/wp-content/uploads/2016/12/wp-image-460721531jpg.jpg) +![](https://www.imsun.org/wp-content/uploads/2016/12/wp-image-460721531jpg.jpg) 照片拍摄自珠海大道。 diff --git a/content/zh-cn/memo/8.md b/content/zh-cn/memo/8.md index 89fca8f..25b8561 100644 --- a/content/zh-cn/memo/8.md +++ b/content/zh-cn/memo/8.md @@ -1,6 +1,6 @@ --- title: "黄易先生逝世" -slug: "life黄易先生逝世" +slug: "8" date: 2017-04-07T11:49:00.000Z diff --git a/content/zh-cn/memo/9.md b/content/zh-cn/memo/9.md index 93af7d4..4d548f9 100644 --- a/content/zh-cn/memo/9.md +++ b/content/zh-cn/memo/9.md @@ -1,6 +1,5 @@ --- title: "平安夜" -slug: "life平安夜" date: 2011-12-24T13:33:00.000Z --- diff --git a/content/zh-cn/posts/Moments.md b/content/zh-cn/posts/Moments.md new file mode 100644 index 0000000..8611baf --- /dev/null +++ b/content/zh-cn/posts/Moments.md @@ -0,0 +1,147 @@ +--- +title: "Moments:一个仿微信朋友圈项目" +slug: "Moments_as_wechat_friends" +categories: +- 分享 +tags: +- Moments +date: 2024-05-06T19:42:55+08:00 +--- +## 项目简介 + +本项目是由`mblog`的作者最新开发的仿微信朋友圈的微博,基于NEXTJS+SQLITE3. +目前正在快速迭代更新中.. + +- 支持匿名评论/点赞 +- 支持引入网易云音乐,b站视频,插入链接等 +- 支持自定义头图,个人头像,网站标题等 +- 支持上传图片到S3兼容的云存储,支持本地存储 +- 适配手机 +- 支持暗黑模式 +- 数据库采用sqlite,可随时备份 +- 支持引入豆瓣读书/豆瓣电影,样式来源于这里 + +## 项目地址 + +https://github.com/kingwrcy/moments + +## 预览 + +![预览][1] + +## 部署步骤 + +建议使用Docker Compose方式部署 + +``` +mkdir /home/moments +cd /home/moments +nano docker-compose.yaml + +``` + +复制以下内容粘贴 + +``` +version: '3' +services: + moments: + image: kingwrcy/moments:latest + ports: + - "3000:3000" + volumes: + - ./data:/app/data + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - ./config.properties:/app/data/config.properties:ro + +``` + +然后 + +``` +nano config.properties + +``` + +把以下内容复制粘贴 + +``` +# 站点url包括http/https +NUXT_PUBLIC_SITE_URL= +#是否启用评论 +NUXT_PUBLIC_MOMENTS_COMMENT_ENABLE=true +#是否显示评论 +NUXT_PUBLIC_MOMENTS_SHOW_COMMENT=true +#评论最大字数 +NUXT_PUBLIC_MOMENTS_COMMENT_MAX_LENGTH=120 +#评论的显示顺序,desc:倒序,asc:顺序 +NUXT_PUBLIC_MOMENTS_COMMENT_ORDER_BY=desc +#是否显示引入豆瓣读书/视频按钮 +NUXT_PUBLIC_MOMENTS_TOOLBAR_ENABLE_DOUBAN=true +#是否显示引入网易云音乐按钮 +NUXT_PUBLIC_MOMENTS_TOOLBAR_ENABLE_MUSIC163=true +#是否显示引入youtube,b站,在线视频按钮 +NUXT_PUBLIC_MOMENTS_TOOLBAR_ENABLE_VIDEO=true +#单条发言最大行数,最大10行 +NUXT_PUBLIC_MOMENTS_MAX_LINE=4 +#recaptchaV3代码中使用此网站密钥 +NUXT_PUBLIC_GOOGLE_RECAPTCHA_SITE_KEY= +#分页大小 +NUXT_PUBLIC_PAGE_SIZE=10 + +#private +#recaptchaV3通信密钥 +NUXT_GOOGLE_RECAPTCHA_SECRET_KEY= + +#是否启用评论通知 +NUXT_PUBLIC_NOTIFY_BY_EMAIL_ENABLE=false +#管理员邮箱 +NUXT_NOTIFY_MAIL= +#邮局服务器地址 +NUXT_MAIL_HOST= +#邮局服务器端口465端口一般是加密的,587端口一般是不加密的 +NUXT_MAIL_PORT=587 +#邮局安全连接true/false +NUXT_MAIL_SECURE=false +#邮箱用户名 +NUXT_MAIL_NAME= +#邮箱密码 +NUXT_MAIL_PASSWORD= +#邮箱发件人 +NUXT_MAIL_FROM= +#邮箱发件人名称 +NUXT_MAIL_FROM_NAME= + +#是否启用阿里云文本审核(只针对评论) +NUXT_PUBLIC_ALIYUN_TEXT_JUDGE_ENABLE=false +#阿里云AccessKey ID +NUXT_ALIYUN_ACCESS_KEY_ID= +#阿里云AccessKey Secret +NUXT_ALIYUN_ACCESS_KEY_SECRET= + +``` + +根据注释内容修改参数 + +如不需要则保持默认即可 + +## 启动容器 + +运行 + +``` +docker-compose up -d + +``` + +## 反向代理 + +反向代理端口 3000 即可 + +## 演示地址 + +[https://wenxs.cn](https://wenxs.cn/) + + + [1]: https://img.imsun.org/2024/04/27/662cd4cb6e4ee.png#vwid=1702&vhei=978 \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 9ecf4fc..be5e765 100644 --- a/hugo.toml +++ b/hugo.toml @@ -40,11 +40,11 @@ theme = 'farallon' indexName = 'blog' searchKey = '6de51423d2ac6b29beb9a061737a85ca' searchAPPID = 'CIU4I6RWD0' - showAuthor = false + showAuthor = true authorName = '老孙' authorDescription = '资深网民孙先生' authorAvatar = 'https://i.sunpeiwen.com/source/img/logo.jpg' - commentDomain = 'https://fatesinger.com/__api/v1' + commentDomain = '' telegram = 'https://t.me/s/imsunpw' feed = '/index.xml' twitter = 'https://twitter.com/imsunpei'