hitokoto-osc / resources Goto Github PK
View Code? Open in Web Editor NEW一言的一些静态资源文件。例如:友情链接列表、关于。
一言的一些静态资源文件。例如:友情链接列表、关于。
感谢大家对一言的支持与热爱!
在2023年4月2日的维护中,我们发现有部分小伙伴的友情链接头像已经过期了。如果您被此条消息@到,则证明当前在大多数人的网络环境下您的头像链接无法正常加载在一言的友链页面。
修复也非常简单:和新增时一样,提一个Pr修改链接,然后@管理员来进行合并;链接请保证**大陆的大多数用户可正常访问,且必须使用https(一言已加入HSTS Preload)。
您也可以使用Gravatar,此时只需在链接处填写 md5(email)
即可,就像这样:
resources/json/friendship.json
Lines 11 to 16 in d443ae4
如果您实在找不到地方存放,或其他特殊情况导致**大陆访问不太正常,您可联系管理员确认头像,您的友链头像将由一言代为托管。
最后,再次感谢您一直以来对一言的支持!
@AdaXH Url来自Sina,疑似Sina已经将该图片删除
@nexmoe avatar.mixcm.com 关闭了连接
https://xiaoshu.app/icon.png 会301到 https://xiaoshu.app/
@yxzlwz 链接展示为404
列表存储在 resources/json/friendship.json
文件中。
一个完整的友链信息类似这样:
{
"name": "你的站点名称",
"link": "你的站点地址(包含 https 前缀)",
"icon": "你的站点图标地址,必须允许第三方源引用;如果开启了白名单,请将 hitokoto.cn 加入白名单",
"desc": "简单介绍你的站点吧"
}
icon
图标地址必须支持https,因为一言使用https,浏览器会将非https链接自动转换为https链接,若https不通会导致头像无法加载。
我们还提供了一些语法糖、可以替代 icon
字段。
如果你想使用 Gravatar 作为你的站点图标的话,你可以:
email
字段,里面填写你的 email 地址;友链页面将自动转换 email
为有效的 Gravatar 地址并改写 icon
字段。email
地址的话,你可以使用 hash
字段。它是你邮箱的 md5 值。实现原理与 email 一致。如果你想使用你的 QQ 头像作为你的站点图标的话,你可以:
qq
字段,友链页面将自动转换 qq
为有效的 QQ 高清头像地址,并改写 icon
字段。
fork
我们的 resources
仓库fork
的仓库中添加你自己的信息Pull Request
jsdelivr
缓存更新的时间。A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.