基于 Hugo 的博客主题,源自 LeaveIt 与 KeepIt 两个项目并做了页头、首页与样式细节调整
KeepIt — Hugo 博客模板
作者 Fastbyte01
KeepIt 是基于 Hugo 的博客主题,源自 LeaveIt 与 KeepIt 两个项目,采用 MIT 许可,提供明暗模式、多语言、搜索与多种扩展 Markdown 短代码。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
支持明暗模式、响应式布局、分页、可展开目录与多语言 i18n
支持 Lunr.js 或 algolia 搜索,以及 Disqus、Gitalk、Valine、Utterances 等多种评论系统
提供 KaTeX 数学公式、mermaid 图表、ECharts 数据可视化、Mapbox 地图、APlayer 音乐播放器与 Bilibili 播放器等短代码
支持 Font Awesome 图标、ruby 注音、分数等扩展 Markdown 语法,以及代码高亮与一键复制
采用 MIT 许可,允许免费使用、修改、商用与分发该版本代码
模板详细介绍
KeepIt 是一个面向 Hugo 的博客主题,仓库位于 Fastbyte01/KeepIt,采用 MIT 许可。README 说明它基于 LeaveIt 与 KeepIt 两个主题修改而来,在页头、CSS 样式、首页、配色与字号、代码预览样式、暗色模式可读性、CSS 动画、目录、社交链接、分享站点与评论系统等方面做了调整。
主题功能覆盖外观与布局、社交与评论、扩展内容三部分。外观方面支持桌面与移动端响应式布局、明暗模式、分页、可展开目录、多语言与 i18n;社交与评论方面支持 Gravatar 或本地头像、最多 64 个社交链接、最多 24 个分享站点,以及 Disqus、Gitalk、Valine、Facebook、Telegram、Commento、Utterances 等评论系统;扩展内容方面支持 Lunr.js 或 algolia 搜索、Twemoji、代码高亮与一键复制、lightGallery 图库,以及 Font Awesome 图标、ruby 注音、分数、KaTeX 数学公式、mermaid 图表、ECharts 数据可视化、Mapbox 地图、APlayer 与 MetingJS 音乐播放器、Bilibili 播放器、admonitions 提示块、自定义样式与脚本、TypeIt 打字动画、cookieconsent 同意横幅等短代码或扩展语法。
使用限制方面,主题依赖需要先编译的 JavaScript 资源:在主题目录执行 npm install 与 npm run build(或 npm run start 启动实时服务器)生成 assets/js/theme.js 等 Hugo 使用的资源。本地构建文档可运行 hugo server --source=exampleSite。README 中列出的第三方库与素材(如字体、图标、图库、播放器、评论服务)各自有独立许可,代码的 MIT 许可不覆盖这些外部素材与服务;域名、托管、评论、搜索、地图等外部服务可能另行收费。README 未说明生产就绪程度或性能保证,仅提到在 Google PageSpeed Insights 上的评分,此处不将其作为承诺复述。
适合你的项目吗?
适用场景
- 使用 Hugo 搭建个人博客并希望获得明暗模式、目录与分页等基础阅读体验
- 在文章中嵌入数学公式、流程图、数据可视化图表或地图等技术内容
- 需要在博文中嵌入音乐播放器或 Bilibili 视频的写作场景
- 希望配置多种社交链接、分享按钮与评论系统的博客站点
- 需要多语言支持或 i18n 准备的 Hugo 站点
适合人群
- 使用 Hugo 并偏好简洁博客布局的个人作者
- 需要在文章中使用扩展 Markdown 语法与短代码的技术写作者
- 希望自行选择评论系统与搜索方案的博客维护者
- 接受在主题目录执行 npm 构建流程的 Hugo 用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
主题依赖需要编译的 JavaScript 资源,需在主题目录执行 npm install 与 npm run build(或 npm run start 启动实时服务器)生成 assets/js/theme.js 等文件
- 2
本地构建文档可运行 hugo server --source=exampleSite
- 3
搜索、评论、地图、分析等外部服务需自行申请并配置相应参数
- 4
演示图片、字体、图标及其他第三方素材需按各自许可核对,代码的 MIT 许可不覆盖这些素材
- 5
分发代码副本或实质性部分时,需保留原作者版权声明和完整 MIT 许可声明
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 使用前必须在主题目录执行 npm install 与 npm run build(或 npm run start)编译 JavaScript 资源,生成 assets/js/theme.js 等文件,否则 Hugo 无法正常使用该主题。
- 搜索功能依赖 Lunr.js 或 Algolia 等外部服务;选择 Algolia 时需自行注册账号并配置 API 密钥,可能产生额外费用。
- Mapbox 地图短代码依赖 Mapbox GL JS 外部服务,使用前需申请 Mapbox 账号与访问令牌,超出免费额度后可能收费。
- Disqus 评论系统为第三方外部服务,需注册账号并嵌入其脚本,可能涉及广告或付费方案。
- Google Analytics 分析功能需自行注册 Google 账号并配置跟踪 ID,属于外部服务。
- 主题内包含 normalize.css、Font Awesome、KaTeX、mermaid、ECharts、APlayer 等大量第三方资源,各自适用独立许可,MIT 许可不覆盖这些素材,分发或商用前需逐一核对。
- README 提供 PayPal、支付宝、微信等赞助渠道,属自愿捐赠,不影响 MIT 许可下的免费使用。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
This theme relies on JavaScript assets that need to be compiled before Hugo can use them. From the theme directory run:
README 原文
**Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/)
README 原文
**Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
README 原文
**Disqus** comment system supported by [Disqus](https://disqus.com)
README 原文
**[Google Analytics](https://analytics.google.com/analytics)** supported
README 原文
Thanks to the authors of following resources included in the theme:
README 原文
https://github.com/Fastbyte01/KeepIt/blob/master/LICENSEhttps://github.com/Fastbyte01/KeepIt/blob/master/README.mdIf you enjoy the theme, please consider buying me a coffee ☕️.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- Hugo Themes
- 资料与维护参考分
- 资料较完整 · 85 / 100
- 技术栈
- Hugo
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-06-27
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: b36b5f84169e76c05a5d7061596910d9360ed1089bca5ca9b75d19705ccc98cd
2026-10-02T16:35:56.683Z
来源文件 / 仓库# KeepIt Theme | Hugo [](https://app.netlify.com/sites/hugo-keepit/deploys) [](https://github.com/Fastbyte01/KeepIt/releases) [](https://gohugo.io/) [](https://github.com/Fastbyte01/KeepIt/blob/master/LICENSE) [](https://sonarcloud.io/summary/new_code?id=dillonzq_KeepIt) [](https://circleci.com/gh/dillonzq/KeepIt/tree/master) English README | [简体中文说明](https://github.com/Fastbyte01/KeepIt/blob/master/README.zh-cn.md) > **KeepIt** is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/). It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt) and [KeepIt Theme](https://github.com/Fastbyte01/KeepIt). Since the three themes have a similar look, if you have questions about their differences, read [Why choose KeepIt](#why-choose-keepit) so that you can choose the one that works best for you.  ## [Demo Site](https://suspicious-archimedes-ab369d.netlify.app/) To see this theme in action, here is a live [demo site](https://suspicious-archimedes-ab369d.netlify.app/) which is rendered with **KeepIt** theme. ## Why choose KeepIt Compared to the original LeaveIt theme and the KeepIt theme, the KeepIt theme has the following modifications. * Custom **Header** * Custom **CSS Style** * A new **home page**, compatible with the latest version of Hugo * A lot of **style detail adjustments,** including color, font size, margins, code preview style * More readable **dark mode** * Some beautiful **CSS animations** * Easy-to-use and self-expanding **table of contents** * More **social links**, **share sites** and **comment system** * **Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/) * **Copy code** to clipboard with one click * Extended Markdown syntax for **[Font Awesome](https://fontawesome.com/) icons** * Extended Markdown syntax for **ruby annotation** * Extended Markdown syntax for **fraction** * **Mathematical formula** supported by [KaTeX](https://katex.org/) * **Diagram syntax** shortcode supported by [mermaid](https://github.com/mermaid-js/mermaid) * **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/) * **Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js) * Embedded **music player** supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS) * **Bilibili** player supported * Kinds of **admonitions** shortcode supported * Custom style shortcodes supported * **CDN** for all third-party libraries supported * ... In short, if you prefer the design language and freedom of the KeepIt theme, if you want to use the extended Font Awesome icons conveniently, if you want to embed mathematical formulas, flowcharts, music or Bilibili videos in your posts, the KeepIt theme may be more suitable for you. I hope you will KeepIt ❤️! ## Features ### Performance and SEO * Optimized for **performance**: 99/100 on mobile and 100/100 on desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights) * Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD * **[Google Analytics](https://analytics.google.com/analytics)** supported * **[Fathom Analytics](https://usefathom.com/)** supported * Search engine **verification** supported (Google, Bing, Yandex and Baidu) * **CDN** for third-party libraries supported * Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes) ### Appearance and Layout * **Desktop/Mobile Responsive** layout * **Light/Dark** mode * Globally consistent **design language** * **Pagination** supported * Easy-to-use and self-expanding **table of contents** * **Multilanguage** supported and i18n ready * Beautiful **CSS animation** ### Social and Comment Systems * **Gravatar** supported by [Gravatar](https://gravatar.com) * Local **Avatar** supported * Up to **64** social links supported * Up to **24** share sites supported * **Disqus** comment system supported by [Disqus](https://disqus.com) * **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk) * **Valine** comment system supported by [Valine](https://valine.js.org/) * **Facebook comments** system supported by [Facebook](https://developers.facebook.com/docs/plugins/comments/) * **Telegram comments** system supported by [Telegram Comments](https://comments.app/) * **Commento** comment system supported by [Commento](https://commento.io/) * **Utterances** comment system supported by [Utterances](https://utteranc.es/) ### Extended Features * **Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/) * **Twemoji** supported * Automatically **highlighting** code * **Copy code** to clipboard with one click * **Images gallery** supported by [lightGallery](https://github.com/sachinchoolur/lightgallery) * Extended Markdown syntax for **[Font Awesome](https://fontawesome.com/) icons** * Extended Markdown syntax for **ruby annotation** * Extended Markdown syntax for **fraction** * **Mathematical formula** supported by [KaTeX](https://katex.org/) * **Diagrams** shortcode supported by [mermaid](https://github.com/mermaid-js/mermaid) * **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/) * **Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js) * **Music player** shortcode supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS) * **Bilibili player** shortcode * Kinds of **admonitions** shortcode * **Custom style** shortcode * **Custom script** shortcode * **Animated typing** supported by [TypeIt](https://typeitjs.com/) * **Cookie consent banner** supported by [cookieconsent](https://github.com/osano/cookieconsent) * ... ## [Documentation](https://suspicious-archimedes-ab369d.netlify.app/categories/documentation/) Build Documentation Locally: ```bash hugo server --source=exampleSite ``` ## Install dependencies and build assets This theme relies on JavaScript assets that need to be compiled before Hugo can use them. From the theme directory run: ```bash npm install npm run build # or `npm run start` for a live server ``` These commands generate `assets/js/theme.js` and other resources consumed by Hugo. ## Multilingual and i18n KeepIt supports the following languages: * English * Simplified Chinese * Traditional Chinese * French * Polish * Brazilian Portuguese * Italian * Spanish * German * Serbian * Russian * Romanian * Vietnamese * [Contribute with a new language](https://github.com/Fastbyte01/KeepIt/pulls) [Languages Compatibility](https://suspicious-archimedes-ab369d.netlify.app/theme-documentation-basics/#language-compatibility) ## [Roadmap](https://github.com/Fastbyte01/KeepIt/projects/1) ## Questions, ideas, bugs, pull requests All feedback is welcome! Head over to the [issue tracker](https://github.com/Fastbyte01/KeepIt/issues). ## License KeepIt is licensed under the **MIT** license. Check the [LICENSE file](https://github.com/Fastbyte01/KeepIt/blob/master/LICENSE) for details. ## Special Thanks Thanks to the authors of following resources included in the theme: * [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](https://github.com/algolia/autocomplete) * [Lunr.js](https://lunrjs.com/) * [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript) * [lazysizes](https://github.com/aFarkas/lazysizes) * [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) * [clipboard.js](https://github.com/zenorocha/clipboard.js) * [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) ## Author [Dillon](https://dillonzq.com) ## Sponsor If you enjoy the theme, please consider buying me a coffee ☕️. * [PayPal](https://paypal.me/dillonzq) * [Alipay](https://github.com/Fastbyte01/KeepIt/raw/master/images/Alipay.jpg) * [Wechat](https://github.com/Fastbyte01/KeepIt/raw/master/images/Wechat.jpg) Thanks! ❤️ ## Stargazers over time [](https://starchart.cc/dillonzq/KeepIt)
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

hugo-PaperMod
PaperMod 是 Hugo 生态里知名度较高的主题之一,定位很明确:给博客和轻量作品集站点提供一套干净、响应式的阅读界面。
Hugo · 作品集

LoveIt
❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
Hugo · 博客

hugo-coder
A minimalist blog theme for hugo.
Hugo · 博客

blowfish
Personal Website & Blog Theme for Hugo
Hugo · 博客

hugo-paper
🪺 A simple, clean, customizable Hugo theme
Hugo · 博客

hextra
Hextra 是一个 Hugo 主题,定位在文档站与博客之间:既提供侧边栏导航、目录、面包屑、分页这类文档站结构,也能承载博客内容。
Hugo · 文档
