惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
Vercel News
Vercel News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
D
DataBreaches.Net
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
The Cloudflare Blog
宝玉的分享
宝玉的分享
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog

姓王者的博客

Linux用户Secure Boot自主维护指南 | 姓王者的博客 MAD Bugs 已经开始——关于信息安全的军备竞赛 | 姓王者的博客 解决钉钉Dingtalk无法在Linux新版内核上启动问题-修复可执行栈错误 | 姓王者的博客 突发:GitHub 正遭受大规模 Issue 赌博广告轰炸 | 姓王者的博客 Ubuntu26.04-beta体验:坚毅浣熊! | 姓王者的博客 fakeclaw装作龙虾发贴吧 | 姓王者的博客 找回12年前的QQ记忆 | 姓王者的博客 在Linux上玩Flash网页游戏-洛克王国 | 姓王者的博客 Copilot将使用交互数据来训练 | 姓王者的博客 重要通知-请更新我的GPG公钥 | 姓王者的博客 为了自由Android | 姓王者的博客 GPL"2,3"事 | 姓王者的博客 短文-对VitePlus的一点🤏小贡献 | 姓王者的博客 Bing收录没了?亲测有效的快速恢复指南 | 姓王者的博客 解决桌面设备二维码快速识别的工具-ClipQR | 姓王者的博客 解决 Nautilus 自定义终端插件安装依赖问题 | 姓王者的博客 OpenClaw 该熄火了 | 姓王者的博客 Vite8 - 统一的基建开始 | 姓王者的博客 Astro 6 推出啦 | 姓王者的博客 ubuntu的openvpn异常暂停推送更新 | 姓王者的博客 Ubuntu 24.04 安装 Win10 虚拟机 | 姓王者的博客 ESA-后记:热爱阿里云 | 姓王者的博客 Moonbit 0.8.0 重大发布,我也要改一下我的包 | 姓王者的博客 ESA Pages 边缘开发大赛获奖 | 姓王者的博客 Astro: 优化katex,mermaid和灯箱使用 | 姓王者的博客 从edgeone迁移到esa | 姓王者的博客 出租人类:AI时代的荒诞与真实 | 姓王者的博客 Astro 5.17构建性能优化实践:从18s到13s | 姓王者的博客 Moonbit License Checker 开发使用 | 姓王者的博客 Stalux Astro博客主题自荐 | 姓王者的博客
hexo-tips:快捷小贴士插件 | 姓王者的博客
作者:xingwangzhe · 2025-01-03 · via 姓王者的博客

🕒 阅读时间:2 分钟 📝 字数:484 👀 阅读量: Loading...

我开发了一个快捷小贴士插件

样式当然都是Copilot帮我写的,我自己才懒得设计颜色:)

github仓库:xingwangzhe/hexo-tips: Use tooltips more conveniently in hexo npm仓库:hexo-tips

npm安装

npm i hexo-tips

配置config

hexo_tips:

warning:

icon: "⚠"

style:

border: "#ffb100"

light:

background: "#fff8e6"

dark:

background: "#3d371f"

danger:

icon: "⛔"

style:

border: "#ff4545"

light:

background: "#ffeded"

dark:

background: "#3d2222"

tip:

icon: "💡"

style:

border: "#409eff"

light:

background: "#e6f4ff"

dark:

background: "#1f2f3d"

mention:

icon: "💬"

style:

border: "#b45fff"

light:

background: "#f3e6ff"

dark:

background: "#2f1f3d"

recommend:

icon: "👍"

style:

border: "#67c23a"

light:

background: "#e6ffe6"

dark:

background: "#1f3d1f"

note:

icon: "📝"

style:

border: "#9e9e9e"

light:

background: "#f5f5f5"

dark:

background: "#363636"

info:

icon: "ℹ️"

style:

border: "#03a9f4"

light:

background: "#e3f2fd"

dark:

background: "#1f313d"

success:

icon: "✅"

style:

border: "#4caf50"

light:

background: "#e8f5e9"

dark:

background: "#1f3d24"

error:

icon: "❌"

style:

border: "#f44336"

light:

background: "#ffebee"

dark:

background: "#3d1f22"

bug:

icon: "🐛"

style:

border: "#e91e63"

light:

background: "#fce4ec"

dark:

background: "#3d1f2a"

todo:

icon: "📋"

style:

border: "#9c27b0"

light:

background: "#f3e5f5"

dark:

background: "#2f1f3d"

example:

icon: "🔍"

style:

border: "#ff9800"

light:

background: "#fff3e0"

dark:

background: "#3d311f"

quote:

icon: "💭"

style:

border: "#607d8b"

light:

background: "#eceff1"

dark:

background: "#1f292d"

link:

icon: "🔗"

style:

border: "#3f51b5"

light:

background: "#e8eaf6"

dark:

background: "#1f2137"

code:

icon: "💻"

style:

border: "#616161"

light:

background: "#fafafa"

dark:

background: "#363636"

update:

icon: "🔄"

style:

border: "#009688"

light:

background: "#e0f2f1"

dark:

background: "#1f3734"

star:

icon: "⭐"

style:

border: "#ffd700"

light:

background: "#fffde7"

dark:

background: "#3d3a1f"

time:

icon: "⌛"

style:

border: "#795548"

light:

background: "#efebe9"

dark:

background: "#332824"

使用方法

通用格式

比如说

当然,内部格式支持markdown格式

样式展示

:::warning 这是一个警告提示

  • 用于提醒用户需要注意的内容
  • 适合展示警告信息 :::

:::danger 这是一个危险提示

用于展示危险操作或重要警告 :::

:::tip 这是一个小贴士

  1. 用于展示提示信息
  2. 可以包含有用的建议 :::

:::mention 这是一个提及框 引用或参考其他内容时使用 :::

:::recommend 这是一个推荐框 推荐有价值的内容或最佳实践 :::

:::note 这是一个笔记框 记录重要笔记或要点 :::

:::info 这是一个信息框 展示一般性的信息 :::

:::success 这是一个成功提示 表示操作成功或完成 :::

:::error 这是一个错误提示 展示错误信息或失败原因 :::

:::bug 这是一个Bug提示 用于标记已知问题或Bug :::

:::todo 这是一个待办事项

  • 第一个任务
  • 第二个任务 :::

:::example 这是一个示例框

:::

:::quote 这是一个引用框

引用他人的观点或内容 :::

:::link 这是一个链接框 Hexo官网 :::

:::code 这是一个代码框 使用等宽字体展示代码 :::

:::update 这是一个更新提示 最后更新:2024-01-03 :::

:::star 这是一个重点提示 特别重要的内容 :::

:::time 这是一个时间提示 预计耗时:30分钟 :::