Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@iconify/svelte": "^4.2.0",
"@swup/astro": "^1.6.0",
"@tailwindcss/typography": "^0.5.16",
"astro": "5.13.6",
"astro": "5.13.7",
"astro-expressive-code": "^0.41.2",
"astro-icon": "^1.1.5",
"hastscript": "^9.0.1",
Expand All @@ -59,14 +59,14 @@
"sanitize-html": "^2.17.0",
"sharp": "^0.34.2",
"stylus": "^0.64.0",
"svelte": "^5.38.7",
"svelte": "^5.38.9",
"tailwindcss": "^3.4.17",
"typescript": "^5.9.2",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@astrojs/ts-plugin": "^1.10.4",
"@biomejs/biome": "2.2.3",
"@biomejs/biome": "2.2.4",
"@rollup/plugin-yaml": "^4.1.2",
"@types/hast": "^3.0.4",
"@types/markdown-it": "^14.1.2",
Expand Down
417 changes: 95 additions & 322 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,3 +347,20 @@ export const sidebarConfig: SidebarConfig = {
labelText: "广告", // 广告标识文本
},
};

// ----------------------------------------------------------

// 朋友圈配置
export const circleConfig = {
dataSource: {
url: "https://fc.fis.ink/all.json", // 朋友圈数据API地址
timeout: 10000, // 请求超时时间(毫秒),默认10秒
},
display: {
articlesPerPage: 12, // 每页显示文章数量
showAvatar: true, // 是否显示作者头像
showAuthor: true, // 是否显示作者名称
dateFormat: "YYYY-MM-DD HH:mm", // 日期格式,默认'YYYY-MM-DD HH:mm'
enablePagination: true, // 是否启用分页
},
};
17 changes: 0 additions & 17 deletions src/content/spec/circle.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
<div id="friend-circle-lite-root"></div>
<script>
if (typeof UserConfig === 'undefined') {
var UserConfig = {
// 填写你的fc Lite地址
private_api_url: 'https://fc.fis.ink/',
// 点击加载更多时,一次最多加载几篇文章,默认20
page_turning_number: 24,
// 头像加载失败时,默认头像地址
error_img: 'https://cdn.fis.ink/img/2025/07/22/687f17323321a.png',
}
}
</script>
<link rel="stylesheet" href="https://file.fis.ink/css/blog/friend-circle-lite/min.css">
<script src="https://fastly.jsdelivr.net/gh/willow-god/Friend-Circle-Lite/main/fclite.min.js"></script>


### 如何加入

如果你想让你的站点出现在朋友圈中,请确保:
Expand Down
Loading