Hugo启动器

kayal — Hugo 启动器模板

作者 mnjm

Kayal 是一个面向个人博客的 Hugo 主题,风格接近 Markdown 排版,提供明暗配色、客户端搜索与 KaTeX、Mermaid 等写作扩展。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-03查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

接近 Markdown 排版的简洁视觉风格,面向个人博客

02

明暗配色可跟随浏览器偏好自动切换,也支持手动切换

03

内置 KaTeX 公式与 Mermaid 图表支持

04

客户端搜索由 Fuse.js 驱动,无需服务端搜索接口

05

提供 Callouts、第三方 Markdown/代码导入等短代码

06

预留自定义首页、评论、自定义 CSS 与页头的扩展位置

模板详细介绍

Kayal 是发布在 Hugo Themes 上的 Hugo 主题,定位为个人博客站点,设计上追求简洁轻量,视觉风格接近 Markdown 的排版观感。仓库采用 MIT 许可,演示站点源码放在 exampleSite 分支,可对照查看实际用法。

主题提供明暗两种配色,可跟随浏览器偏好自动切换,也支持手动切换;首页为个人资料式布局。配置项集中在主题自带的配置文件中,默认多为注释状态,取消注释即可启用或调整。

写作与阅读方面,内置 Callouts、从第三方站点导入 Markdown 与代码的短代码、KaTeX 公式、Mermaid 图表、目录、代码复制、标题锚点、文章封面与响应式图片处理,并支持在文章中链接第三方站点内容。搜索为基于 Fuse.js 的客户端搜索,另有 RSS 输出、面包屑与 Google Analytics 接入。

主题预留了自定义首页、其他统计、评论、自定义 CSS 与自定义页头的占位位置,资源由站点自行托管,不依赖 CDN。图标使用 FontAwesome 6 的 SVG。安装支持 git submodule、Hugo Module 与手动三种方式;README 给出的快速路径是添加 submodule 后,把主题 config/_default 下的配置文件复制到项目根目录的 config/_default,再删除 hugo.toml 并构建。

需要注意:README 中的功能列表属于作者自述,未在本资料中逐项验证;演示图片、字体、图标等第三方素材的许可需单独核对,不能仅凭代码的 MIT 许可判断。

Hugo启动器

适合你的项目吗?

适用场景

  • 搭建以文字为主的个人博客
  • 撰写包含数学公式或流程图的文章
  • 希望站点资源自行托管、不依赖 CDN 的博客
  • 需要客户端全文搜索而不引入后端服务的静态站点

适合人群

  • 使用 Hugo 构建个人博客的开发者
  • 偏好 Markdown 式简洁排版的写作者
  • 需要公式、图表与客户端搜索的静态站点
  • 希望以 MIT 许可自由修改和分发主题的用户

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    可通过 git submodule、Hugo Module 或手动方式安装,README 提供了 submodule 的快速步骤

  2. 2

    安装后需将 themes/kayal/config/_default 下的配置文件复制到项目根目录的 config/_default 并调整

  3. 3

    主题配置文件中多数选项默认被注释,取消注释即可启用

  4. 4

    若项目根目录存在 hugo.toml,按 README 说明需删除后再构建

  5. 5

    演示图片、字体、图标等第三方素材的许可需单独核对

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 客户端搜索依赖第三方库 Fuse.js,该库以独立许可发布,使用前需自行核对其许可条款。
  • 启用 Google Analytics 需自行注册 Google 账号并获取跟踪 ID,属于外部服务,可能涉及数据合规与隐私政策要求。
  • 从第三方站点导入 Markdown 与代码的短代码会访问外部站点,实际使用受目标站点条款与可用性限制。
  • 图标来自 FontAwesome 6,其许可与主题的 MIT 许可相互独立,商用或再分发前需单独确认。
  • 演示站点源码位于 exampleSite 分支,其中的图片等演示素材许可需单独核对,不随主题代码许可一并授予。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Client-side search powered by [Fuse.js](https://www.fusejs.io/)

README 原文

Google Analytics

README 原文

Shortcodes: Includes Callouts, Markdown and Code import from 3rd Party sites.

README 原文

SVG Icons from FontAwesome 6

README 原文

Source for the Demo site is available in [exampleSite](https://github.com/mnjm/kayal/tree/exampleSite) branch.

README 原文
https://github.com/mnjm/kayal/blob/main/LICENSEhttps://github.com/mnjm/kayal/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
Hugo Themes
资料与维护参考分
资料较完整 · 87 / 100
技术栈
Hugo
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-09-02
截图检查日期
2026-10-03

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-04

查看当时使用的来源资料

SHA-256: bba44e41a5299a315edaea8d6bac119765578ae83050bde787e8b8a85a4b7a72

2026-10-03T19:23:06.343Z

来源文件 / 仓库
# Kayal

Kayal is a Hugo theme designed to be minimal and lightweight, with markdown-ish aesthetics for personal blog sites.

<p styles="font-size: 2em; font-weight:bold;" align="center">🌐<a href="https://mnjm.github.io/kayal/">Demo site</a></p>
<p align="center">
<img src="https://github.com/mnjm/kayal/actions/workflows/main.yaml/badge.svg" alt="Demo Site GH Pages">
<img src="https://img.shields.io/github/license/mnjm/kayal" alt="GitHub License">
<img src="https://img.shields.io/github/languages/code-size/mnjm/kayal" alt="GitHub code size in bytes">
<a href="https://themes.gohugo.io/themes/kayal/"><img src="https://img.shields.io/badge/Hugo--Themes-@Kayal-blue" alt="Kayal"></a>
</p>

| Desktop | Mobile |
| ---- | ---- |
|![Desktop](https://github.com/mnjm/kayal/blob/main/images/tn.png?raw=true)|![Mobile](https://github.com/mnjm/kayal/blob/main/images/mobile.png?raw=true)|

Source for the Demo site is available in [exampleSite](https://github.com/mnjm/kayal/tree/exampleSite) branch.

## Features
- Clean and Responsive Design
- Light and Dark Color Modes: Automatically adjusts based on browser preferences and/or manual toggle.
- Profile Homepage
- Customizable Configuration: Easily adjust settings to personalize
- Shortcodes: Includes Callouts, Markdown and Code import from 3rd Party sites.
- KaTeX Support
- Mermaid Diagrams Support
- Client-side search powered by [Fuse.js](https://www.fusejs.io/)
- Cross-linking: Ability to link posts on third party sites.
- RSS Feed
- Table of Contents
- Code Copy
- Heading Anchors
- Google Analytics
- SVG Icons from FontAwesome 6
- SEO Friendly.
- Breadcrumbs
- Article Cover image
- Responsive Image optimization
- Extensibility: Includes placeholders for
    - Custom Homepage
    - Other Analytics
    - Comments
    - Custom CSS
    - Custom header
- Site hosted assets / no CDNs
- And many more...

## Installation
Kayal supports several installation methods: as a git submodule, a Hugo Module, or through manual installation.

Detailed instructions on how to install Kayal can be found in [Installation](https://mnjm.github.io/kayal/docs/getting-started/) on the demo site. Here's a quick guide on how to install the theme as a git submodule:

1. In your Hugo site directory, run the following command:

    ```bash
    git submodule add -b main https://github.com/mnjm/kayal.git themes/kayal
    ```

2. Copy config files from `themes/kayal/config/_default` to `config/_default` at the root of your Hugo project. Make necessary configuration changes in these files. Refer to [Configuration](https://mnjm.github.io/kayal/docs/configuration/) on the demo site for more information.
3. Remove `hugo.toml` if present, and build the site.

## Configuration

The config files included with Kayal contain all possible settings recognized by the theme. By default, many of these settings are commented out, but you can simply uncomment them to activate or modify.

Refer to [Configuration](https://mnjm.github.io/kayal/docs/configuration/) on the demo site for more details.

## Contribution
Found a bug or have a new feature idea? Create an issue to let me know, or even better, submit a pull request directly!

## Addendum
While building this theme, I constantly referred to the source codes of [Blowfish](https://github.com/nunocoracao/blowfish) and [Hugo-PaperMod](https://github.com/adityatelange/hugo-PaperMod). The idea for using markdown aesthetics came from [Archie](https://github.com/mnjm/archie), another Hugo theme.

## License
This theme is released under the [MIT License](./LICENSE).
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。