Skip to content

Commit

Permalink
refactor: friend links rm api deps
Browse files Browse the repository at this point in the history
  • Loading branch information
eallion committed Nov 3, 2024
1 parent 9f3afbb commit 5032a02
Show file tree
Hide file tree
Showing 69 changed files with 38 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload-mastodon-to-algolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Fetch Memos JSON
run: |
data_url="https://api.eallion.com/mastodon/api/v1/accounts/111136231674527355/statuses?limit=20&exclude_replies=true&exclude_reblogs=true"
data_url="https://e5n.cc/api/v1/accounts/111136231674527355/statuses?limit=20&exclude_replies=true&exclude_reblogs=true"
output_file="output.json"
curl -s "$data_url" | jq '.[] | {objectID: (.id | tostring), date: .created_at, content: (.content | gsub("<[^>]*>";"")), uri, title: (.content | gsub("<[^>]*>";"") | rtrimstr("\n") | .[ :20])}' > "$output_file"
jq -s '.' "$output_file" > mastodon.json
Expand Down
72 changes: 36 additions & 36 deletions assets/data/friends/links.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,199 +4,199 @@
"name": "Charles Chin",
"bio": "charleschin.com",
"url": "https://charleschin.com",
"avatar": "https://api.eallion.com/gravatar/171e4c30959e8c077a6c58b958624b31"
"avatar": "/assets/images/friends/gravatar/171e4c30959e8c077a6c58b958624b31.png"
},
{
"name": "博友圈",
"bio": "博客人的朋友圈,博客收录与文章 RSS 聚合网站。",
"url": "https://www.boyouquan.com/",
"avatar": "https://api.eallion.com/gravatar/ced4b22c3e7a0a4fb5452c166eee6e0e"
"avatar": "/assets/images/friends/gravatar/ced4b22c3e7a0a4fb5452c166eee6e0e.png"
},
{
"name": "羽中漫步",
"bio": "羽中漫步",
"url": "https://www.yzmb.me/",
"avatar": "https://api.eallion.com/gravatar/ffa9ac42c56fd4776ccef37c57664965"
"avatar": "/assets/images/friends/gravatar/ffa9ac42c56fd4776ccef37c57664965.png"
},
{
"name": "怡红公子",
"bio": "怡红公子的怡红院落",
"url": "https://imnerd.org/",
"avatar": "https://api.eallion.com/gravatar/a373282ace706850ed7edfab4161f9e4"
"avatar": "/assets/images/friends/gravatar/a373282ace706850ed7edfab4161f9e4.png"
},
{
"name": "木木木木木",
"bio": "木木老师",
"url": "https://immmmm.com",
"avatar": "https://api.eallion.com/gravatar/ba83fa02fc4b2ba621514941307e21be"
"avatar": "/assets/images/friends/gravatar/ba83fa02fc4b2ba621514941307e21be.png"
},
{
"name": "太阳博客",
"bio": "孙老太的晚年",
"url": "https://www.sunmingxia.com/",
"avatar": "https://api.eallion.com/gravatar/aab6e5c5ceb1c1c2d92b35bb88dd013c"
"avatar": "/assets/images/friends/gravatar/aab6e5c5ceb1c1c2d92b35bb88dd013c.png"
},
{
"name": "秦大叔",
"bio": "不曾长大",
"url": "https://qfsyj.com",
"avatar": "https://api.eallion.com/gravatar/4ba509f9ec541ab4d316299727b3e3ab"
"avatar": "/assets/images/friends/gravatar/4ba509f9ec541ab4d316299727b3e3ab.png"
},
{
"name": "十三姨爱我",
"bio": "踏遍青山人未老,风景这边独好。",
"url": "https://fanghongxing.cn",
"avatar": "https://api.eallion.com/gravatar/84988a8cb4ea306f6e2b1bcf880081dc"
"avatar": "/assets/images/friends/gravatar/84988a8cb4ea306f6e2b1bcf880081dc.png"
},
{
"name": "王叨叨",
"bio": "无叨叨,不博客!不懂用户体验的前端不是好爸爸……",
"url": "https://wangdaodao.com/",
"avatar": "https://api.eallion.com/gravatar/4a713ec085a4431f15a8da0942656713"
"avatar": "/assets/images/friends/gravatar/4a713ec085a4431f15a8da0942656713.png"
},
{
"name": "未来往事",
"bio": "我愿像茶一样,把苦涩留在心底,散发出来的都是清香。",
"url": "https://felixway.cn/",
"avatar": "https://api.eallion.com/gravatar/2ee35215cbea58cd8b2605e7f517d689"
"avatar": "/assets/images/friends/gravatar/2ee35215cbea58cd8b2605e7f517d689.png"
},
{
"name": "被遗忘的旧岛",
"bio": "被遗忘的旧岛",
"url": "https://jiudao.net/",
"avatar": "https://api.eallion.com/gravatar/75ab7cb11e241abf513f04182ab653a5"
"avatar": "/assets/images/friends/gravatar/75ab7cb11e241abf513f04182ab653a5.png"
},
{
"name": "FF",
"bio": "foolish fox",
"url": "https://foolishfox.cn/",
"avatar": "https://api.eallion.com/gravatar/53bc457fbba563ce1ce80edda8310241"
"avatar": "/assets/images/friends/gravatar/53bc457fbba563ce1ce80edda8310241.png"
},
{
"name": "Heo",
"bio": "爱折腾的设计师",
"url": "https://blog.zhheo.com/",
"avatar": "https://api.eallion.com/gravatar/d0c536c701e0f333db83c1ced5d2b8cd"
"avatar": "/assets/images/friends/gravatar/d0c536c701e0f333db83c1ced5d2b8cd.png"
},
{
"name": "Bore's Note",
"bio": "博观而约取,厚积而薄发。",
"url": "https://bore.vip/",
"avatar": "https://api.eallion.com/gravatar/9be62391e297826516364374435f758c"
"avatar": "/assets/images/friends/gravatar/9be62391e297826516364374435f758c.png"
},
{
"name": "冰剑",
"bio": "采用人工智能,各部分零件齐全,运转稳定,经三十多年的运行,属质量信得过产品。",
"url": "https://digu.plus/",
"avatar": "https://api.eallion.com/gravatar/0c9157a4f48ba4cc94ada5e7016bcf72"
"avatar": "/assets/images/friends/gravatar/0c9157a4f48ba4cc94ada5e7016bcf72.png"
},
{
"name": "ILY's Blog",
"bio": "I Love Y",
"url": "https://ily.cc/",
"avatar": "https://api.eallion.com/gravatar/7cddb8e0e0ae3694b0a8d31c790ebce6"
"avatar": "/assets/images/friends/gravatar/7cddb8e0e0ae3694b0a8d31c790ebce6.png"
},
{
"name": "空白生活",
"bio": "Koobai 空白生活",
"url": "https://koobai.com/",
"avatar": "https://api.eallion.com/gravatar/3b3d336a7d389b7ae8531cbe177ae9b7"
"avatar": "/assets/images/friends/gravatar/3b3d336a7d389b7ae8531cbe177ae9b7.png"
},
{
"name": "归臧",
"bio": "UI & UX Design",
"url": "https://nuoea.com/",
"avatar": "https://api.eallion.com/gravatar/020d365ea2596ef6d516143bb0552704"
"avatar": "/assets/images/friends/gravatar/020d365ea2596ef6d516143bb0552704.png"
},
{
"name": "东评西就",
"bio": "小饿,专注科技互联网、社交媒体运营",
"bio": "小饿专注科技互联网、社交媒体运营",
"url": "https://dongjunke.cn",
"avatar": "https://api.eallion.com/gravatar/42542189ddb33064599dc88a5149bea7"
"avatar": "/assets/images/friends/gravatar/42542189ddb33064599dc88a5149bea7.png"
},
{
"name": "文武科技柜",
"bio": "文武科技社的后花园",
"url": "https://www.wangdu.site/",
"avatar": "https://api.eallion.com/gravatar/3f86f3f1aa105924d030b7d3040a0037"
"avatar": "/assets/images/friends/gravatar/3f86f3f1aa105924d030b7d3040a0037.png"
},
{
"name": "lehhair's Blog",
"bio": "人似秋鸿来有信,事如春梦了无痕",
"url": "https://blog.lehhair.net/",
"avatar": "https://api.eallion.com/gravatar/947bbc64d98c5c85dd1f56758070289b"
"avatar": "/assets/images/friends/gravatar/947bbc64d98c5c85dd1f56758070289b.png"
},
{
"name": "老孙博客",
"bio": "曾梦想仗剑走天涯",
"url": "https://www.imsun.org/",
"avatar": "https://api.eallion.com/gravatar/2950778b87c48f43c576c08bd67df6b6"
"avatar": "/assets/images/friends/gravatar/2950778b87c48f43c576c08bd67df6b6.png"
},
{
"name": "1900 的博客",
"bio": "1900 的博客,普通男青年,分享生活、折腾技术。",
"url": "https://1900.live/",
"avatar": "https://api.eallion.com/gravatar/cc38267b10cc25dfc62209f8ca34589e"
"avatar": "/assets/images/friends/gravatar/cc38267b10cc25dfc62209f8ca34589e.png"
},
{
"name": "拾月",
"bio": "在互联网行业做产品类工作,日常关注互联网、软件应用居多,也喜欢股票投资、社科历史。执着于掌控自己的数据,Self-hosted 爱好者",
"url": "https://www.skyue.com/",
"avatar": "https://api.eallion.com/gravatar/c3fb4bb4d5101284ddd672fb722cdd7d"
"avatar": "/assets/images/friends/gravatar/c3fb4bb4d5101284ddd672fb722cdd7d.png"
},
{
"name": "海拉鲁打怪日记",
"bio": "记录生活、数理统计和技术的博客",
"url": "https://www.xuezhao.space/",
"avatar": "https://api.eallion.com/gravatar/a868e586e9a9e57fb7644b09eb1d3865"
"avatar": "/assets/images/friends/gravatar/a868e586e9a9e57fb7644b09eb1d3865.png"
},
{
"name": "Kezade",
"bio": "全栈开发,架构师,向往躺平",
"url": "https://zyxelva.github.io/",
"avatar": "https://api.eallion.com/gravatar/26c0365e031855e0422df76e17922435"
"avatar": "/assets/images/friends/gravatar/26c0365e031855e0422df76e17922435.png"
},
{
"name": "长街短梦",
"bio": "此行山高路远,我只剩口袋玫瑰一片",
"url": "https://wangyunzi.com/",
"avatar": "https://api.eallion.com/gravatar/c1b204bab687a23c8b6d7c8de11c7c59"
"avatar": "/assets/images/friends/gravatar/c1b204bab687a23c8b6d7c8de11c7c59.png"
},
{
"name": "无名小站",
"bio": "waahah的小巢",
"bio": "waahah 的小巢",
"url": "https://www.waahah.xyz/",
"avatar": "https://api.eallion.com/gravatar/1e32e103af5edd4221fdfc0fd0426b14"
"avatar": "/assets/images/friends/gravatar/1e32e103af5edd4221fdfc0fd0426b14.png"
},
{
"name": "修远的小屋",
"bio": "路漫漫其修远兮,吾将上下而求索",
"url": "https://house.coderxst.top/",
"avatar": "https://api.eallion.com/gravatar/1f43118595a14e11ac8cb1b79861cb78"
"avatar": "/assets/images/friends/gravatar/1f43118595a14e11ac8cb1b79861cb78.png"
},
{
"name": "皮普的数字花园",
"bio": "设计,摄影,AIGC,代码",
"url": "https://pipuwong.com/",
"avatar": "https://api.eallion.com/gravatar/d3af34e32b9a018ed5b467d63beac3ed"
"avatar": "/assets/images/friends/gravatar/d3af34e32b9a018ed5b467d63beac3ed.png"
},
{
"name": "恐咖兵糖的blog",
"name": "恐咖兵糖的 blog",
"bio": "芝士,与你分享!",
"url": "https://www.ftls.xyz/",
"avatar": "https://api.eallion.com/gravatar/e281e7f36ac67dfc2d66848c8ffb3658"
"avatar": "/assets/images/friends/gravatar/e281e7f36ac67dfc2d66848c8ffb3658.png"
},
{
"name": "半方池水半方田",
"bio": "只能懂一点点",
"url": "https://uuanqin.top/",
"avatar": "https://api.eallion.com/gravatar/8c8c66638b65075ca3432ffe11f8b9bd"
"avatar": "/assets/images/friends/gravatar/8c8c66638b65075ca3432ffe11f8b9bd.png"
},
{
"name": "CWorld Site",
"bio": "求知若愚,虚怀若谷",
"url": "https://cworld.top/",
"avatar": "https://api.eallion.com/gravatar/1ffe42aa45a6b1444a786b1f32dfa8aa"
"avatar": "/assets/images/friends/gravatar/1ffe42aa45a6b1444a786b1f32dfa8aa.png"
}
]
}
5 changes: 1 addition & 4 deletions layouts/_default/links.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
</div>
<div class="my-4 mr-4 ml-24">
<div class="flex items-center overflow-hidden whitespace-nowrap text-ellipsis">
<span class="w-4 h-4 mr-1"><img class="lazy nozoom mt-0 mb-0 rounded-full" alt src="https://api.eallion.com/favicon/{{- $url | base64Encode -}}"></span>
<span class="w-4 h-4 mr-1"><img class="lazy nozoom mt-0 mb-0 rounded-full" alt src="/assets/images/friends/favicon/{{- $url | base64Encode -}}.png"></span>
<i class="not-italic">{{- $name -}}</i>
</div>
<p class="overflow-hidden whitespace-nowrap text-ellipsis text-neutral-700 mt-0 mb-0 dark:text-neutral-300">{{- $bio -}}</p>
</div>
<div class="hidden rounded border border-solid border-neutral-700 group-hover:block">
<img class="lazy nozoom my-0" loading="lazy" alt src="https://api.eallion.com/screens/{{- strings.TrimSuffix "/" $domain -}}.png ">
</div>
</div>
</a>
{{ end }}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5032a02

Please sign in to comment.