基于 LeaveIt 与 KeepIt 发展而来的 Hugo 博客主题,采用 MIT 许可
LoveIt — Hugo 博客模板
作者 dillonzq
LoveIt 是一个基于 Hugo 的博客主题,源自 LeaveIt 与 KeepIt,采用 MIT 许可,提供明暗模式、多语言与多种扩展 Markdown 语法。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
支持明暗模式、响应式布局、分页、多语言与 i18n
内置 Lunr.js 或 Algolia 搜索,支持代码高亮与一键复制代码
支持 KaTeX 公式、mermaid 图表、ECharts 可视化、Mapbox 地图等 shortcode
可接入 Disqus、Gitalk、Valine、utterances、giscus 等多种评论系统
提供 Font Awesome 图标、ruby 注音、分数等扩展 Markdown 语法
模板详细介绍
LoveIt 是面向 Hugo 的博客主题,定位为简洁、优雅且功能较完整的博客外观方案。它基于 LeaveIt 与 KeepIt 两个主题发展而来,在页头、CSS 样式、首页、配色与字号、代码预览样式、暗色模式可读性、目录、社交链接、分享站点与评论系统等方面做了调整,并加入若干 CSS 动画。
功能层面,主题提供桌面与移动端响应式布局、明暗两种模式、分页、可自动展开的目录、多语言与 i18n 支持。社交与评论方面支持 Gravatar 或本地头像、大量社交链接与分享站点,以及 Disqus、Gitalk、Valine、Facebook、Telegram、Commento、utterances、giscus 等评论系统。搜索可由 Lunr.js 或 Algolia 提供。
扩展能力集中在内容写作:支持 Font Awesome 图标、ruby 注音、分数等扩展 Markdown 语法;通过 shortcode 可嵌入 KaTeX 数学公式、mermaid 图表、ECharts 数据可视化、Mapbox 地图、APlayer 与 MetingJS 音乐播放器、Bilibili 播放器、多种 admonition、自定义样式与脚本、TypeIt 打字动画以及 cookie 同意横幅。第三方库支持使用 CDN。
使用限制方面,主题与 Hugo 版本存在对应关系:0.3.X 为推荐版本,对应 Hugo 0.128.0 至 0.145.0;0.2.X 已过时,对应 0.68.0 至 0.127.0;master 分支为不稳定版本,要求 Hugo 0.146.0 及以上。主题代码采用 MIT 许可,但演示图片、字体、图标等第三方素材需按各自许可核对,域名、托管等外部服务可能另行收费。
适合你的项目吗?
适用场景
- 用 Hugo 搭建个人技术博客或写作站点
- 需要在文章中嵌入数学公式、流程图或数据可视化图表
- 希望为博客接入第三方评论系统与站内搜索
- 面向多语言读者发布内容并需要 i18n 支持
适合人群
- 使用 Hugo 作为静态站点生成器的开发者
- 以文字内容为主、需要代码高亮与公式排版的博客作者
- 需要明暗模式、多语言与评论系统等常见博客功能的站点
- 接受按主题与 Hugo 版本对应关系选择合适版本的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
主题与 Hugo 版本需对应:0.3.X 推荐用于 Hugo 0.128.0–0.145.0,0.2.X 对应 0.68.0–0.127.0,master 分支要求 Hugo 0.146.0 及以上
- 2
本地构建文档可执行 hugo server --source=exampleSite
- 3
搜索、评论、分析等第三方功能需自行配置对应服务,第三方库可选择使用 CDN
- 4
演示图片、字体、图标等第三方素材需按各自许可核对,不能仅凭 MIT 许可判断
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 主题版本与 Hugo 版本存在对应限制:0.3.X 推荐用于 Hugo 0.128.0–0.145.0,0.2.X 对应 0.68.0–0.127.0,master 分支要求 Hugo 0.146.0 及以上,版本不匹配可能无法正常使用。
- 站内搜索需依赖第三方服务:使用 Lunr.js 或 Algolia,其中 Algolia 需注册账号并获取 API 密钥,可能涉及外部服务成本。
- 评论功能需接入第三方评论服务(如 Disqus、Gitalk、Valine、utterances、giscus 等),通常需要注册账号、配置密钥或授权,并受对应服务条款约束。
- Mapbox 地图 shortcode 依赖 Mapbox GL JS,使用需注册 Mapbox 账号并获取访问令牌,超出免费额度后可能产生费用。
- 第三方库可选择通过 CDN 加载,实际使用会依赖外部 CDN 服务的可用性与相关条款。
- 主题内包含 modern-normalize、Font Awesome、Simple Icons、Animate.css、Lunr.js、lightGallery、KaTeX、mermaid、ECharts、APlayer 等第三方资源,这些素材可能采用与 MIT 不同的许可,需分别核对。
- README 中的赞助为自愿捐赠,并非使用主题的付费前提,不影响 MIT 许可下的免费使用。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
| **0.3.X(Recommended)** | 0.128.0 - 0.145.0 |
README 原文
**Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/)
README 原文
**Disqus** comment system supported by [Disqus](https://disqus.com)
README 原文
**Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
README 原文
**CDN** for all third-party libraries supported
README 原文
Thanks to the authors of following resources included in the theme:
README 原文
https://github.com/dillonzq/LoveIt/blob/master/LICENSEhttps://github.com/dillonzq/LoveIt/blob/master/README.mdIf you enjoy the theme, please consider buying me a coffee ☕️.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 95 / 100
- 技术栈
- Hugo
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-09-01
- 截图检查日期
- 2026-10-01
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 6fa4a5597356dfe1815a1ef5bd3360169fd2cfd13101595e4c5af78276f411e3
2026-10-01T15:11:32.645Z
来源文件 / 仓库# LoveIt Theme | Hugo [](https://github.com/dillonzq/LoveIt/releases) [](https://gohugo.io/) [](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) [](https://app.netlify.com/sites/hugo-loveit/deploys) [](https://github.com/dillonzq/LoveIt/actions/workflows/ci.yml) [](https://github.com/dillonzq/LoveIt/actions/workflows/nightly.yml) English README | [简体中文说明](https://github.com/dillonzq/LoveIt/blob/master/README.zh-cn.md) > **LoveIt** 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 LoveIt](#why-choose-loveit) so that you can choose the one that works best for you.  ## [Demo Site](https://hugoloveit.com/) To see this theme in action, here is a live [demo site](https://hugoloveit.com/) which is rendered with **LoveIt** theme. ## Why choose LoveIt Compared to the original LeaveIt theme and the KeepIt theme, the LoveIt 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 LoveIt 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 LoveIt theme may be more suitable for you. I hope you will LoveIt ❤️! ## 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 * **[Plausible Analytics](https://plausible.io/)** supported * **[Yandex Metrica](https://metrica.yandex.com/)** supported * Search engine **verification** supported (Google, Bind, 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 **84** social links supported * Up to **27** 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/) * **giscus** comment system supported by [giscus](https://giscus.app/) ### 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) * **Person** shortcode * ... ## [Documentation](https://hugoloveit.com/categories/documentation/) Build Documentation Locally: ```bash hugo server --source=exampleSite ``` ## Compatibility | LoveIt branch or version | Supported Hugo versions | |:-------------------------|:-----------------------:| | master(Unstable) | >= 0.146.0 | | **0.3.X(Recommended)** | 0.128.0 - 0.145.0 | | 0.2.X(Outdated) | 0.68.0 - 0.127.0 | ## Multilingual and i18n LoveIt supports the following languages: * English * Simplified Chinese * Traditional Chinese * French * Polish * Portuguese (Brazil) * Italian * Spanish * German * Serbian * Russian * Romanian * Vietnamese * Arabic * Catalan * Thai * Telugu * Indonesian * Turkish * Korean * Hindi * Dutch * Bengali * Japanese * [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls) [Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility) ## [Roadmap](https://github.com/dillonzq/LoveIt/projects/1) ## Questions, ideas, bugs, pull requests All feedback is welcome! Head over to the [issue tracker](https://github.com/dillonzq/LoveIt/issues). ## License LoveIt is licensed under the **MIT** license. Check the [LICENSE file](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) for details. ## Special Thanks Thanks to the authors of following resources included in the theme: * [modern-normalize](https://github.com/sindresorhus/modern-normalize) * [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/dillonzq/LoveIt/raw/master/images/Alipay.jpg) * [Wechat](https://github.com/dillonzq/LoveIt/raw/master/images/Wechat.jpg) Thanks! ❤️ ## Stargazers over time [](https://starchart.cc/dillonzq/LoveIt)
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

hugo-PaperMod
PaperMod 是 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 · 文档

Congo
Congo 是一款为 Hugo 设计的现代内容主题,核心定位是让内容本身成为页面焦点。 它基于 Tailwind CSS 3.0 构建,整体布局完全响应式,视觉风格干净且克制,没有多余装饰。
Hugo · 博客
