mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
238 lines
10 KiB
Markdown
238 lines
10 KiB
Markdown
# FixIt 主题 | Hugo
|
||
|
||
[](https://github.com/hugo-fixit/FixIt/releases)
|
||
[](https://gohugo.io/)
|
||
[](/LICENSE)
|
||
|
||
👉 [English README](README.md) | 简体中文说明
|
||
|
||
[FixIt](https://github.com/hugo-fixit/FixIt) 是一个**简洁**、**优雅**且**高效**的 [Hugo](https://gohugo.io/) 博客主题。
|
||
|
||
它的原型基于 [LoveIt 主题](https://github.com/dillonzq/LoveIt),[KeepIt 主题](https://github.com/Fastbyte01/KeepIt) 和 [LeaveIt 主题](https://github.com/liuzc/LeaveIt)。[^1]
|
||
|
||

|
||
|
||
## 主题文档
|
||
|
||
1. [安装篇](https://fixit.lruihao.cn/zh-cn/documentation/installation/)
|
||
2. [入门篇](https://fixit.lruihao.cn/zh-cn/documentation/getting-started/)
|
||
3. [内容管理](https://fixit.lruihao.cn/zh-cn/documentation/content-management/)
|
||
4. [进阶篇](https://fixit.lruihao.cn/zh-cn/documentation/advanced/)
|
||
|
||
或者在本地运行 [文档站点](https://fixit.lruihao.cn/zh-cn/),更多细节详见 [hugo-fixit/docs](https://github.com/hugo-fixit/docs)。
|
||
|
||
## 模板仓库
|
||
|
||
- [hugo-fixit/hugo-fixit-start](https://github.com/hugo-fixit/hugo-fixit-start/generate)
|
||
- [hugo-fixit/hugo-fixit-start1](https://github.com/hugo-fixit/hugo-fixit-start1/generate)
|
||
- [hugo-fixit/docs](https://github.com/hugo-fixit/docs/generate)
|
||
- [Lruihao/hugo-blog](https://github.com/Lruihao/hugo-blog/generate)
|
||
|
||
## 谁在用 FixIt
|
||
|
||
为了直观地浏览主题特性,这里有一些基于 **FixIt** 主题渲染的 [预览网站](https://fixit.lruihao.cn/zh-cn/friends/)。
|
||
|
||
## 特性
|
||
|
||
### 性能和 SEO
|
||
|
||
- **性能**优化:在 [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights) 中,99/100 的移动设备得分和 100/100 的桌面设备得分
|
||
- 使用基于 JSON-LD 格式 的 **SEO SCHEMA** 文件进行 SEO 优化
|
||
- 支持 **[Google Analytics](https://analytics.google.com/analytics)**
|
||
- 支持 **[Fathom Analytics](https://usefathom.com/)**
|
||
- 支持搜索引擎的**网站验证** (Google, Bing, Yandex, Pinterest, Baidu, 360 and Sogou)
|
||
- 支持所有第三方库的 **CDN**
|
||
|
||
### 外观和布局
|
||
|
||
- **响应式**布局
|
||
- **浅色/深色** 主题模式
|
||
- 全局一致的**设计语言**
|
||
- 支持**分页**
|
||
- 易用和自动展开的**文章目录**
|
||
- 支持**多语言**和国际化
|
||
- 美观的 **CSS 动画**
|
||
|
||
### 社交和评论系统
|
||
|
||
- 支持 **[Gravatar](https://gravatar.com)** 头像
|
||
- 支持本地**头像**
|
||
- 支持多达 **87** 种社交链接
|
||
- 支持多达 **28** 种网站分享
|
||
- 支持 **[Disqus](https://disqus.com)** 评论系统
|
||
- 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统
|
||
- 支持 **[Valine](https://valine.js.org/)** 评论系统
|
||
- 支持 **[Waline](https://waline.js.org/)** 评论系统
|
||
- 支持 **[Facebook](https://developers.facebook.com/docs/plugins/comments/) 评论**系统
|
||
- 支持 **[Telegram comments](https://comments.app/) 评论**系统
|
||
- 支持 **[Commento](https://commento.io/)** 评论系统
|
||
- 支持 **[Utterances](https://utteranc.es/)** 评论系统
|
||
- 支持 **[Artalk](https://artalk.js.org/)** 评论系统
|
||
- 支持 **[Twikoo](https://twikoo.js.org/)** 评论系统
|
||
- 支持 **[giscus](https://giscus.app/zh-CN/)** 评论系统
|
||
|
||
### 扩展功能
|
||
|
||
- 支持**渐进式网页应用**
|
||
- 支持**二级菜单**
|
||
- 支持**内容加密**(页面、局部)
|
||
- 支持**友情链接**的页面模板
|
||
- 支持基于 [algolia](https://www.algolia.com/) 或 [Fuse.js](https://fusejs.io/) 的**搜索**
|
||
- 支持 **Twemoji**
|
||
- 支持**代码高亮**
|
||
- 一键**复制代码**到剪贴板
|
||
- 支持基于 [lightgallery](https://github.com/sachinchoolur/lightgallery) 的**图片画廊**
|
||
- 支持 **[Font Awesome](https://fontawesome.com/) 图标**的扩展 Markdown 语法
|
||
- 支持**上标注释**的扩展 Markdown 语法
|
||
- 支持**分数**的扩展 Markdown 语法
|
||
- 支持基于 [KaTeX](https://katex.org/) 的**数学公式**
|
||
- 支持基于 [mermaid](https://github.com/knsv/mermaid) 的**图表** 代码块扩展语法和 shortcode
|
||
- 支持基于 [ECharts](https://echarts.apache.org/) 的**交互式数据可视化** 代码块扩展语法和 shortcode
|
||
- 支持 **Timeline** 的代码块扩展语法和 shortcode
|
||
- 支持基于 [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js) 的 **Mapbox** shortcode
|
||
- 支持基于 [APlayer](https://github.com/MoePlayer/APlayer) 和 [MetingJS](https://github.com/metowolf/MetingJS) 的**音乐播放器** shortcode
|
||
- 支持 **Bilibili 视频** 和 **抖音视频** shortcode
|
||
- 支持多种**注释**的 shortcode
|
||
- 支持**自定义样式**的 shortcode
|
||
- 支持**自定义脚本**的 shortcode
|
||
- 支持基于 [TypeIt](https://typeitjs.com/) 的**打字动画** shortcode
|
||
- 支持基于 [cookieconsent](https://github.com/osano/cookieconsent) 的 **Cookie 许可横幅**
|
||
- 支持基于 [cell-watermark](https://github.com/Lruihao/watermark) 的**网页水印**
|
||
- 支持基于 [pangu.js](https://github.com/vinta/pangu.js) 的**中文排版**
|
||
- 支持本地**缓存远程图床图片**
|
||
- 高**扩展性**
|
||
- ……
|
||
|
||
### 主题组件
|
||
|
||
FixIt 主题旨在在 **简洁性** 和 **可扩展性** 之间取得平衡。为此,我们开发了一系列额外的 [Hugo 主题组件](https://fixit.lruihao.cn/zh-cn/components/) 供用户选择。
|
||
|
||
## 多语言和国际化
|
||
|
||
FixIt 支持下列语言:
|
||
|
||
- 英语
|
||
- 简体中文
|
||
- 繁体中文
|
||
- 法语
|
||
- 波兰语
|
||
- 巴西葡萄牙语
|
||
- 意大利语
|
||
- 西班牙语
|
||
- 德语
|
||
- 塞尔维亚语
|
||
- 俄语
|
||
- 罗马尼亚语
|
||
- 越南语
|
||
- 印地语
|
||
- [贡献一种新的语言](https://github.com/hugo-fixit/FixIt/pulls)
|
||
|
||
[语言兼容性](https://fixit.lruihao.cn/zh-cn/theme-documentation-basics/#language-compatibility)
|
||
|
||
## 社区支持
|
||
|
||
所有的反馈都是欢迎的!详见 [Discussions][discussions]、[Pull requests][pulls] 和 [Issues][issues]。
|
||
|
||
| 官方社区 | 说明 |
|
||
| :--------------------------------- | :------------------------------ |
|
||
| [Discussions][discussions] | GitHub 讨论区 |
|
||
| [FixIt 主题交流群(微信)][wx-mp] | 关注「菠菜眾長」回复“FixIt”获取 |
|
||
| [FixIt 主题交流群(QQ)][qq-group] | QQ 群:`814031017` |
|
||
| [Hugo FixIt 星球][zsxq] | 付费知识星球 |
|
||
|
||
[discussions]: https://github.com/hugo-fixit/FixIt/discussions
|
||
[pulls]: https://github.com/hugo-fixit/FixIt/pulls
|
||
[issues]: https://github.com/hugo-fixit/FixIt/issues
|
||
[qq-group]: https://qm.qq.com/cgi-bin/qm/qr?k=awbwdTtSQ_-H5QGzeJxdWgv6JMbNehNM&jump_from=webapi
|
||
[zsxq]: https://t.zsxq.com/GgKEW
|
||
[wx-mp]: https://lruihao.cn/images/qr-wx-mp.webp
|
||
|
||
## 参与贡献
|
||
|
||
- [Hugo FixIt 路线图](https://github.com/orgs/hugo-fixit/projects/2)
|
||
|
||
请参阅 [CONTRIBUTING.md](CONTRIBUTING.md) 以了解贡献该项目的基本信息。
|
||
|
||
确保在贡献和参与讨论时遵守 [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)。
|
||
|
||
**贡献时,请先通过此存储库上的问题讨论你希望进行的更改,然后再进行实际更改**。
|
||
|
||
## 镜像
|
||
|
||
- Gitee 镜像仓库:<https://gitee.com/lruihao/FixIt>
|
||
|
||
## 致谢
|
||
|
||
感谢 [所有贡献者](https://github.com/hugo-fixit/FixIt/graphs/contributors) 的支持!
|
||
|
||
<details>
|
||
<summary>FixIt 主题中用到了以下项目,感谢它们的作者:</summary>
|
||
|
||
- [normalize.css](https://github.com/necolas/normalize.css)
|
||
- [Font Awesome](https://fontawesome.com/)
|
||
- [Simple Icons](https://github.com/simple-icons/simple-icons)
|
||
- [Animate.css](https://daneden.github.io/animate.css/)
|
||
- [autocomplete-js](https://github.com/algolia/autocomplete)
|
||
- [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript)
|
||
- [Fuse.js](https://fusejs.io/)
|
||
- [object-fit-images](https://github.com/fregante/object-fit-images)
|
||
- [Twemoji](https://github.com/twitter/twemoji)
|
||
- [emoji-data](https://github.com/iamcal/emoji-data)
|
||
- [lightgallery](https://github.com/sachinchoolur/lightgallery)
|
||
- [Sharer.js](https://github.com/ellisonleao/sharer.js)
|
||
- [TypeIt](https://typeitjs.com/)
|
||
- [KaTeX](https://katex.org/)
|
||
- [mermaid](https://github.com/mermaid-js/mermaid)
|
||
- [ECharts](https://echarts.apache.org/)
|
||
- [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
|
||
- [APlayer](https://github.com/MoePlayer/APlayer)
|
||
- [MetingJS](https://github.com/metowolf/MetingJS)
|
||
- [Gitalk](https://github.com/gitalk/gitalk)
|
||
- [Valine](https://valine.js.org/)
|
||
- [cookieconsent](https://github.com/osano/cookieconsent)
|
||
- [cell-watermark](https://github.com/Lruihao/watermark)
|
||
- [不蒜子](http://busuanzi.ibruce.info/)
|
||
- [pangu.js](https://github.com/vinta/pangu.js)
|
||
- [Artalk](https://artalk.js.org/)
|
||
- [Waline](https://waline.js.org/)
|
||
- [Twikoo](https://twikoo.js.org/)
|
||
- [github-corners](https://github.com/tholman/github-corners)
|
||
- [giscus](https://giscus.app/zh-CN)
|
||
- [crypto-js](https://github.com/brix/crypto-js)
|
||
- [vConsole](https://github.com/Tencent/vConsole)
|
||
- [eruda](https://github.com/liriliri/eruda)
|
||
- [pace](https://github.com/CodeByZach/pace)
|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary>FixIt 主题还借鉴了以下项目的部分功能,同样感谢它们的作者:</summary>
|
||
|
||
- [DoIt](https://github.com/HEIGE-PCloud/DoIt)
|
||
- [NexT](https://github.com/next-theme/hexo-theme-next)
|
||
|
||
</details>
|
||
|
||
## 许可协议
|
||
|
||
FixIt 根据 **MIT** 许可协议授权。更多信息请查看 [LICENSE 文件](LICENSE)。
|
||
|
||
## 赞助支持
|
||
|
||
[](https://github.com/hugo-fixit/FixIt)
|
||
|
||
如果你喜爱这个主题,请考虑给我买杯咖啡 ☕️,谢谢!
|
||
|
||
- [微信支付](images/wechatpay.jpg)
|
||
- [支付宝](images/alipay.jpg)
|
||
- [PayPal](https://paypal.me/Lruihao)
|
||
|
||
## 作者
|
||
|
||
Follow [Lruihao](https://github.com/Lruihao "在 GitHub 上关注我")
|
||
|
||
如果你喜欢这个主题,别忘了留下一颗 ⭐️ 哦,谢谢!
|
||
|
||
<!-- footnote reference definition -->
|
||
[^1]: 主题名称趣谈:“leave it, keep it,love it,fix it”。出现又离开,爱而不得。这像不像那该死的爱情和 BUG 呢?🤣
|