基于 Hugo 的博客主题,提供响应式布局与明暗模式切换
LoveIt — Hugo 博客模板
作者 bestlucky0825
LoveIt 是一个基于 Hugo 的博客主题,强调简洁优雅的外观,并在 LeaveIt 与 KeepIt 基础上扩展了搜索、评论、数学公式、图表、音乐播放器等短代码能力。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
支持 Lunr.js 或 Algolia 搜索,以及多种第三方评论系统
通过短代码扩展 Markdown,可嵌入 KaTeX 公式、mermaid 图表、ECharts 可视化、Mapbox 地图、音乐与 Bilibili 播放器
支持多语言与 i18n,内置分页与自动展开目录
提供 Font Awesome 图标、ruby 注音、分数等扩展 Markdown 语法
采用 MIT 许可,允许免费使用、修改、商用和分发该版本代码
模板详细介绍
LoveIt 是面向 Hugo 的博客主题,定位为「干净、优雅且功能进阶」。它基于 LeaveIt 与 KeepIt 两个主题发展而来,对页头、CSS 样式、首页、暗色模式、目录、社交链接、分享站点与评论系统等做了调整与扩充。主题支持多语言与 i18n,内置响应式布局与明暗模式切换,并提供分页与自动展开的目录。
在内容扩展方面,LoveIt 通过短代码支持 Font Awesome 图标、ruby 注音、分数、KaTeX 数学公式、mermaid 图表、ECharts 交互式数据可视化、Mapbox 地图、APlayer/MetingJS 音乐播放器、Bilibili 播放器以及多种 admonition 提示块,并支持自定义样式与自定义脚本短代码。搜索可由 Lunr.js 或 Algolia 提供,评论系统可选 Disqus、Gitalk、Valine、Facebook、Telegram、Commento、utterances、giscus 等。
主题附带示例站点,可通过 hugo server --source=exampleSite 在本地构建文档。仓库中标注的 Hugo 版本要求为 ^0.62.0,但具体依赖版本请以实际依赖清单为准。使用前需注意:演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断;域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
适合你的项目吗?
适用场景
- 搭建个人技术博客或写作站点,需要明暗模式、目录与代码高亮
- 在文章内嵌入数学公式、流程图、数据可视化或地图
- 为博客配置 Algolia 或 Lunr.js 搜索,并接入 Disqus、Gitalk、utterances 等评论系统
- 构建多语言博客,需要 i18n 与多语言内容管理
- 在文章中嵌入音乐播放器或 Bilibili 视频
适合人群
- 使用 Hugo 作为静态站点生成器的开发者或写作者
- 需要 Markdown 扩展语法与短代码能力的博客作者
- 希望自行选择搜索与评论服务并接入第三方库的站点维护者
- 需要多语言博客与响应式布局的个人或团队
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
主题要求 Hugo 版本为 ^0.62.0,实际依赖版本请以依赖清单为准
- 2
可运行 hugo server --source=exampleSite 在本地构建示例站点与文档
- 3
搜索需在 Lunr.js 与 Algolia 之间选择并完成相应配置
- 4
评论系统需按所选服务(如 Disqus、Gitalk、Valine、utterances、giscus 等)单独配置
- 5
演示图片、字体、图标等第三方素材需按各自许可核对,外部服务可能另外收费
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 搜索功能需在 Lunr.js 或 Algolia 之间选择;若选用 Algolia,需注册 Algolia 账号并配置其外部搜索服务。
- 评论系统为可选集成,启用 Disqus 需注册并依赖 Disqus 这一外部第三方服务。
- 启用 Gitalk 评论需依赖 GitHub 账号与 GitHub OAuth 应用等外部配置。
- 启用 Valine 评论需配置 LeanCloud 等外部后端服务与相应密钥。
- 使用 Mapbox 短代码需依赖 Mapbox GL JS 外部服务,通常需要 Mapbox 访问令牌。
- 音乐播放器短代码依赖 APlayer 与 MetingJS 外部库及相应音乐接口服务。
- Bilibili 播放器短代码依赖 Bilibili 外部平台嵌入服务。
- 第三方库可通过 CDN 加载,意味着运行时依赖外部 CDN 服务可用性。
- 赞助为自愿性质,并非使用该主题的强制付费要求。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
**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 原文
**Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk)
README 原文
**Valine** comment system supported by [Valine](https://valine.js.org/)
README 原文
**Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
README 原文
**Music player** shortcode supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
README 原文
**Bilibili player** shortcode
README 原文
**CDN** for all third-party libraries supported
README 原文
https://github.com/bestlucky0825/LoveIt/blob/master/LICENSEhttps://github.com/bestlucky0825/LoveIt/blob/master/README.mdIf you enjoy the theme, please consider buying me a coffee ☕️.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-11。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 65 / 100
- 技术栈
- Hugo
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2022-05-30
- 截图检查日期
- 2026-10-11
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261017 · 2026-10-16
查看当时使用的来源资料
SHA-256: af603dfcba2ffa43a07201cc432d945041f3654577d79bd81c54604cb4a10336
2026-10-11T21:29:38.181Z
来源文件 / 仓库# LoveIt Theme | Hugo [](https://app.netlify.com/sites/hugo-loveit/deploys) [](https://github.com/dillonzq/LoveIt/releases) [](https://gohugo.io/) [](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) [](https://sonarcloud.io/summary/new_code?id=dillonzq_LoveIt) [](https://circleci.com/gh/dillonzq/LoveIt/tree/master) 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 * 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 **67** 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/) * **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) * ... ## [Documentation](https://hugoloveit.com/categories/documentation/) Build Documentation Locally: ```bash hugo server --source=exampleSite ``` ## Multilingual and i18n LoveIt supports the following languages: * English * Simplified Chinese * Traditional Chinese * French * Polish * Brazilian Portuguese * Italian * Spanish * German * Serbian * Russian * Romanian * Vietnamese * Arabic * Catalan * Thai * Telugu * Indonesian * [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: * [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/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 · 作品集

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 · 文档
