Skip to content

Commit 4a3e2a4

Browse files
committed
chore(project): copy from blog
1 parent 6490fbc commit 4a3e2a4

File tree

350 files changed

+128
-18695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+128
-18695
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#COLINE_ANALYZE=true
2-
NEXT_PUBLIC_COLINE_LANGUAGE=zh_Hans
2+
NEXT_PUBLIC_COLINE_LANGUAGE=zh-Hans
33
NEXT_PUBLIC_COLINE_GOOGLE_ANALYTICS=G-xxxxxxxxxx
44
NEXT_PUBLIC_COLINE_ARTALK_SITE_NAME=Blog
55
NEXT_PUBLIC_COLINE_ARTALK_SERVER_URL=https://artalk.example.com

README.md

+50-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
1-
# Otstar's Blog
1+
# Coline - 轻快、简洁、优雅的 Next.js 模板
22

3-
Otstar Lin 的个人博客,基于 Gatsby 开发
3+
Coline(**co**nnect, **line**)是一个基于 Next.js App Router 开发的博客模板,建立在轻快与简洁的设计理念上,摒弃花里胡哨的界面,专注于内容创作
44

5-
链接:https://blog.ixk.me
5+
## 设计理念
6+
7+
- **简洁清新**:人的注意力是有限的,为了使读者能聚焦于内容之上。Coline 仅保留了少量色彩,大范围使用中性色,鲜明的色彩仅用于特殊场景,同时任何与内容无关的信息都不应该出现。
8+
- **轻量快速**:人的容忍度是有限的,通常一个网站如果不能在 3 秒内加载出大部分内容,读者就会失去等待的耐心。Coline 在 LightHouse 中表现优秀,Performance > 98%,Best practice 100%。
9+
- **SEO 100%**:网站不仅要给人类看,还需要给机器看。Coline 在 LightHouse 中 SEO 评分达到了 100%。同时也支持了 RSS,使读者能够使用 RSS 阅读器订阅博客。
10+
- **无障碍支持**:不是所有人都是完美的,不应该歧视任何不完美的人。Coline 尽可能降低障碍人士使用难度,在 LightHouse 中 Accessibility > 90%。
11+
- **写作友好**:网站的内容是作者产出的,如果不能有良好的写作体验,那么其他都是泡沫。Coline 集成了 Keystatic CMS,支持可视化编辑,仅需 GitHub 与 Vercel 即可启动一个 Coline 站点。
12+
13+
## 技术栈
14+
15+
- Next.js 14 (App Router)
16+
- Vanilla Extract
17+
- Keystatic
18+
- Artalk
19+
- Fuse.js
20+
21+
## 使用方式
22+
23+
1. 使用 create-next-app 初始化站点文件
24+
25+
```shell
26+
pnpm dlx create-next-app --example https://github.com/syfxlin/blog
27+
```
28+
29+
2. 配置 env 文件
30+
31+
```shell
32+
cp .env.example .env
33+
```
34+
35+
> - **NEXT_PUBLIC_COLINE_LANGUAGE**:配置站点语言,支持 zh-Hans、zh-Hant、en
36+
> - **NEXT_PUBLIC_COLINE_GOOGLE_ANALYTICS**:配置 Google Analysis
37+
> - **NEXT_PUBLIC_COLINE_ARTALK_SITE_NAME****NEXT_PUBLIC_COLINE_ARTALK_SERVER_URL** 配置 [Artalk](https://github.com/ArtalkJS/Artalk)
38+
> - **NEXT_PUBLIC_COLINE_GITHUB_REPO**:配置站点仓库的地址
39+
> - **COLINE_GITHUB_TOKEN**:配置你的 GitHub Token,用于 Projects 页面,建议只给 public_repo 权限
40+
> - **KEYSTATIC_SECRET****KEYSTATIC_GITHUB_CLIENT_ID****KEYSTATIC_GITHUB_CLIENT_SECRET****NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG** 具体可以看 [Keystatic 的文档](https://keystatic.com/docs/github-mode)
41+
42+
4. 启动站点
43+
44+
```shell
45+
pnpm dev
46+
```
47+
48+
5. 构建站点
49+
50+
``shell
51+
pnpm build
52+
``

depker.config.ts

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
1-
import { depker, docker, nextjs } from "https://raw.githubusercontent.com/syfxlin/depker/master/mod.ts";
1+
import { depker, nextjs } from "https://raw.githubusercontent.com/syfxlin/depker/master/mod.ts";
22

33
const app = depker();
44

5-
app.master(docker({ type: "https" }));
6-
app.runner(docker({ type: "local" }));
7-
85
app.service(
96
nextjs({
107
name: "blog",
118
domain: "blog.ixk.me",
129
tls: true,
10+
secrets: {
11+
NEXT_PUBLIC_COLINE_LANGUAGE: "@COLINE_LANGUAGE",
12+
NEXT_PUBLIC_COLINE_GOOGLE_ANALYTICS: "@COLINE_GOOGLE_ANALYTICS",
13+
NEXT_PUBLIC_COLINE_ARTALK_SITE_NAME: "@COLINE_ARTALK_SITE_NAME",
14+
NEXT_PUBLIC_COLINE_ARTALK_SERVER_URL: "@COLINE_ARTALK_SERVER_URL",
15+
NEXT_PUBLIC_COLINE_GITHUB_REPO: "@COLINE_GITHUB_REPO",
16+
COLINE_GITHUB_TOKEN: "@COLINE_GITHUB_TOKEN",
17+
KEYSTATIC_SECRET: "@KEYSTATIC_SECRET",
18+
KEYSTATIC_GITHUB_CLIENT_ID: "@KEYSTATIC_GITHUB_CLIENT_ID",
19+
KEYSTATIC_GITHUB_CLIENT_SECRET: "@KEYSTATIC_GITHUB_CLIENT_SECRET",
20+
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: "@KEYSTATIC_GITHUB_APP_SLUG",
21+
},
1322
}),
1423
);
1524

public/content/config/friends.yaml

+18-181
Original file line numberDiff line numberDiff line change
@@ -1,183 +1,20 @@
11
display: top
22
links:
3-
- name: Pasi's Studio
4-
link: https://pasi.cat/
5-
avatar: /image/config/friends/links/0/avatar.640x640.jpg
6-
author: Pasi
7-
description: 404 Not Found
8-
- name: 天空·边界
9-
link: https://liyin.date
10-
avatar: /image/config/friends/links/1/avatar.160x160.png
11-
author: 立音喵
12-
description: 用心探知天空的边界
13-
- name: 晴耕物语博客
14-
link: https://www.sayxw.top
15-
avatar: /image/config/friends/links/2/avatar.120x120.png
16-
description: 晴天丶故事丶雨声丶平静的心。
17-
- name: Zavier's Blog
18-
link: https://zavierlab.com
19-
avatar: /image/config/friends/links/3/avatar.750x750.png
20-
author: Zavier
21-
description: 平淡就好
22-
- name: 蠢黑通行
23-
link: https://blackyau.cc
24-
avatar: /image/config/friends/links/4/avatar.360x354.png
25-
author: 蠢黑通行
26-
- name: 下午茶的轻音部
27-
link: https://www.myeriri.com/
28-
avatar: /image/config/friends/links/5/avatar.512x512.png
29-
author: Haibara
30-
- name: 恶魔菌の记事簿
31-
link: https://meow3.family.blog
32-
avatar: /image/config/friends/links/6/avatar.661x661.png
33-
author: 恶魔菌
34-
description: 半文艺、半动漫的二次元美少女的涂鸦簿!
35-
- name: Zohar's Blog
36-
link: https://www.iwch.me
37-
avatar: /image/config/friends/links/7/avatar.640x640.png
38-
author: Zohar
39-
description: The Most Important Thing in My Life is Freedom
40-
- name: 萨摩公园
41-
link: https://i-meto.com
42-
avatar: /image/config/friends/links/8/avatar.256x256.png
43-
author: Meto
44-
description: 我就是我,不食人间烟火
45-
- name: 奶冰の冷藏室
46-
link: https://milkice.me
47-
avatar: /image/config/friends/links/9/avatar.256x256.png
48-
author: Milkice
49-
description: Maybe a way to explore the world?
50-
- name: KeJun's Blog
51-
link: https://kejun.me
52-
avatar: /image/config/friends/links/10/avatar.500x500.png
53-
author: KeJun
54-
description: 二次元智障
55-
- name: 梦之翼
56-
link: https://fly.moe
57-
avatar: /image/config/friends/links/11/avatar.140x140.png
58-
author: Fly3949
59-
description: Flyの宅基地
60-
- name: Elepover's Blog
61-
link: https://daily.elepover.com
62-
avatar: /image/config/friends/links/12/avatar.700x700.png
63-
author: Elepover
64-
description: 没有人能阻挡,我们与生俱来对自由的渴望
65-
- name: 无垠
66-
link: https://flyhigher.top
67-
avatar: /image/config/friends/links/13/avatar.270x270.png
68-
author: Axton
69-
description: 飞翔的天空无限大
70-
- name: 苏卡卡的有底洞
71-
link: https://skk.moe
72-
avatar: /image/config/friends/links/14/avatar.128x128.png
73-
author: Sukka
74-
description: 「童话只美在真实却从不续写」
75-
- name: ⑨BIE
76-
link: https://9bie.org
77-
avatar: /image/config/friends/links/15/avatar.800x800.jpg
78-
author: ⑨BIE
79-
description: 伪技术宅的谜之地
80-
- name: Re:Vigorous Pro
81-
link: https://www.wevg.org
82-
avatar: /image/config/friends/links/16/avatar.959x960.jpg
83-
author: Edison Jwa
84-
description: Hi, nice to meet you.这是一个从零开始的世界
85-
- name: Indexyz's Blog
86-
link: https://blog.indexyz.me
87-
avatar: /image/config/friends/links/17/avatar.640x640.jpg
88-
author: Indexyz
89-
description: Sharing light, even in death.
90-
- name: 黄蜂说
91-
link: https://www.sjy.im
92-
avatar: /image/config/friends/links/18/avatar.530x530.png
93-
author: a.k.a. 小黄蜂
94-
description: 一名互联网从业者的自留地,分享自己的所见所得,自认为过程比结果重要。
95-
- name: NEVER迷の小窝
96-
link: https://blog.never.pet
97-
avatar: /image/config/friends/links/19/avatar.512x388.png
98-
author: NeverBehave
99-
description: 喵喵喵~
100-
- name: idealclover
101-
link: https://idealclover.top
102-
avatar: /image/config/friends/links/20/avatar.320x320.jpg
103-
author: idealclover
104-
description: 翠翠酱的个人网站
105-
- name: 罗炜杰个人博客
106-
link: https://www.lwjppz.cn
107-
avatar: /image/config/friends/links/21/avatar.700x700.jpg
108-
author: 不必谁懂我
109-
description: 记录写代码的苦逼日子
110-
- name: 小竹's Blog
111-
link: https://blog.justforlxz.com
112-
avatar: /image/config/friends/links/22/avatar.400x400.png
113-
author: 小竹
114-
description: 永远不要停止思考
115-
- name: 辣椒の酱
116-
link: https://removeif.github.io
117-
avatar: /image/config/friends/links/23/avatar.640x638.jpg
118-
author: 辣椒の酱
119-
description: 后端开发,技术分享
120-
- name: 蝉時雨
121-
link: https://chanshiyu.com
122-
avatar: /image/config/friends/links/24/avatar.402x402.jpg
123-
author: 蝉時雨
124-
description: 蝉鸣如雨 花宵道中
125-
- name: Jing blog
126-
link: https://jingine.com
127-
avatar: /image/config/friends/links/25/avatar.1247x1280.png
128-
author: Chris
129-
- name: TonyHe
130-
link: https://www.ouorz.com
131-
avatar: /image/config/friends/links/26/avatar.960x960.jpg
132-
author: TonyHe
133-
description: Just A Poor Lifesinger
134-
- name: Cyberspace of Swung
135-
link: https://www.swung0x48.com
136-
avatar: /image/config/friends/links/27/avatar.640x640.jpg
137-
author: Swung0x48
138-
description: Lost in cyberpunk.
139-
- name: WenJie' Blog
140-
link: https://wenjie.store
141-
avatar: /image/config/friends/links/28/avatar.1893x1594.jpg
142-
author: chenwenjie
143-
description: 记录一些学习笔记、杂谈
144-
- name: 蚊Blog
145-
link: https://qwq.moe
146-
avatar: /image/config/friends/links/29/avatar.640x640.png
147-
author: 贫困の蚊子
148-
- name: Cyris
149-
link: https://cyris.moe
150-
avatar: /image/config/friends/links/30/avatar.1558x1556.png
151-
author: Cyris
152-
description: 花如解笑还多事,石不能言最可人
153-
- name: Cotpear
154-
link: https://www.cotpear.com?utm_src=blog.ixk.me
155-
avatar: /image/config/friends/links/31/avatar.1600x1600.jpg
156-
author: 齊一和其團隊
157-
- name: QWQAQ
158-
link: https://qwqaq.com
159-
avatar: /image/config/friends/links/32/avatar.640x640.png
160-
author: qwqaq
161-
description: 生命不止,折腾不息 ( ゜- ゜)
162-
- name: OS0day
163-
link: https://blog.os0day.cn
164-
avatar: /image/config/friends/links/33/avatar.640x640.png
165-
author: OS0day
166-
description: 一位医疗行业的软件工程师
167-
- name: 冰糕Luminous の 小窝
168-
link: https://0m0.co
169-
avatar: /image/config/friends/links/34/avatar.500x500.png
170-
author: 冰糕Luminous
171-
lost_links:
172-
- name: 周海棠啦
173-
link: https://begonia98.github.io
174-
- name: Viosey's Blog
175-
link: https://blog.viosey.com
176-
- name: neoFelhz's Blog
177-
link: https://nfz.moe
178-
- name: 诸葛小百科
179-
link: https://www.xiaobaike.net/
180-
- name: stackboom
181-
link: http://stackboom.xin
182-
- name: N0ts Blog
183-
link: https://blog.n0ts.cn
3+
- name: 个人主页
4+
link: https://ixk.me
5+
avatar: /image/config/friends/links/0/avatar.400x400.png
6+
author: Otstar Lin
7+
description: Otstar's Space的源码,个人主页。
8+
- name: 青空之蓝
9+
link: https://blog.ixk.me
10+
avatar: /image/config/friends/links/1/avatar.400x400.png
11+
author: Otstar Lin
12+
description: 站在时光一端,回忆过往记忆。
13+
- name: GitHub
14+
link: https://github.com/syfxlin
15+
avatar: /image/config/friends/links/2/avatar.400x400.png
16+
author: Otstar Lin
17+
description: >-
18+
💻Coding / 🎉GuGuGu / 📖 Learning / 🚩 Open Source developer / 🐛 Bug
19+
making machine
20+
lost_links: []
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
欢迎交换友链呀 ~{% textAlign="center" %}
2-
3-
以下是我的友链列表,列表随机排序,信息如果有变动,可以联系我进行更改。{% textAlign="center" %}
4-
5-
申请友链请到 [友链申请](/links-application),**先友后链**,不定期过滤阵亡名单。{% textAlign="center" %}

public/content/config/header.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ main:
77
link: /links
88
icon: ri:heart-line
99
view: elastic
10-
- title: 自述
11-
link: /about
12-
icon: ri:user-line
13-
view: elastic
1410
- title: 归档
1511
link: /archives
1612
icon: ri:archive-line

public/content/config/home.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
display: document
1+
display: articles
-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +0,0 @@
1-
Hi👋,我是 Otstar Lin,也可以称呼为繁星🌟。
2-
3-
我主要聚焦在 Spring Projects、Node.js、React.js、Rich Text Editor、CI/CD 相关的领域。对设计、艺术和交互很感兴趣,但没有系统研究过。
4-
5-
热爱开源社区,但是长期以来总是在折腾自己无人问津的项目👀,最近才开始为开源项目做出贡献😶。
6-
7-
喜欢在空闲的时间造点有趣的东西,想法很多💡,但基本都是挖坑不填🕳️,您可以在 [这里](/projects) 找到我的完整项目列表。
8-
9-
除了编程之外,摄影、阅读、写文章也是我的爱好📝。我开始写博客是在 2017 年左右,博客逐渐成了我在互联网上的一块小天地☁️。这些年来写博客的朋友们越来越少了,或许我的博客也会在未来的某一天从互联网上消失吧⏳。
10-
11-
博客最新的文章:
12-
13-
{% articles /%}
14-
15-
你可以在这里找到我:
16-
17-
[GitHub](simple-icons:github$$https://github.com/syfxlin) [Twitter](simple-icons:twitter$$https://twitter.com/syfxlin) [Telegram](simple-icons:telegram$$https://t.me/otstar) [QQ](simple-icons:tencentqq$$https://qm.qq.com/q/WwnAzRUC0U) [Mail](simple-icons:maildotru$$mailto:[email protected]) [DouBan](simple-icons:douban$$https://www.douban.com/people/141694435) [NetEase](ri:netease-cloud-music-line$$https://music.163.com/#/user/home?id=281301709) [BiliBili](simple-icons:bilibili$$https://space.bilibili.com/16210802)
18-
19-
如果您喜欢我的作品,请考虑在 [爱发电](carbon:lightning$$https://afdian.net/@syfxlin) 上赞助我,以保持它们的可持续发展。

public/content/config/seo.yaml

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
link: https://blog.ixk.me
1+
link: https://coline.ixk.me
22
logo: /image/config/seo/logo.400x400.jpg
3-
title: 青空之蓝
4-
subtitle: 站在时光一端,回忆过往记忆。
3+
title: Coline
4+
subtitle: 轻快、简洁、优雅的 Next.js 模板
55
description: >-
6-
青空之蓝(博客)- Otstar Lin (@syfxlin,繁星) 在互联网上的一片小天地,随便写点东西的地方。技术博客,以 Java
7-
后端开发,前端开发相关内容为主
8-
birthday: 2017-07-01T00:00
6+
Coline(connect, line)是一个基于 Next.js App Router
7+
开发的博客模板,建立在轻快与简洁的设计理念上,摒弃花里胡哨的界面,专注于内容创作
8+
birthday: 2024-01-01T00:00
99
keywords:
1010
- Otstar Lin
1111
- syfxlin
1212
- Blog
1313
- 博客
14-
- Java
15-
- JavaScript
16-
- TypeScript
17-
- Full Stack
14+
- Next.js
15+
- Next.js App Router

0 commit comments

Comments
 (0)