以无障碍访问为核心设计,使用 ARIA 等无障碍标签,面向盲人与视障用户
hguinav — Hugo 博客模板
作者 harrymkt
hguinav 是一个面向无障碍访问的 Hugo 多语言主题,同时提供博客与文档站点模板,采用 MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
支持 Hugo 内置多语言与 i18n,提供多语言菜单检查
同时提供博客文章模板与专门的文档站点模板
通过 blocks 与 partials 自定义 head、header、footer、extrahead、extrafooter,无需复制文件到 layouts
内置搜索支持,提供多种搜索格式,并支持分类法与基于分类法的作者管理
提供代码块复制按钮与按用户本地时区显示日期等 JavaScript 辅助功能,可配置开关
模板详细介绍
hguinav(UI Navigation)是一个 Hugo 主题,作者为盲人开发者,主题以无障碍访问为设计重点,通过 ARIA 等无障碍标签提升屏幕阅读器与视障用户的可用性。主题支持 Hugo 内置的多语言与 i18n 机制,并提供博客文章模板和专门用于构建文档站点的模板。
功能方面,主题提供可自定义的 extrahead、extrafooter、head、header、footer(通过 partials 与 blocks 实现),支持内容变量(如 %title%)、按分区排序页面、按分区设置分页数量、菜单页面多语言检查、分类法(taxonomies)以及基于分类法的作者/用户管理。主题还内置搜索支持,提供多种搜索格式,并附带代码块复制按钮、按用户本地时区显示日期等由 JavaScript 辅助的功能,且可在配置和页面 frontmatter 中分别开关 JavaScript 的使用。
主题通过 blocks 机制减少对 layouts 目录的文件复制,并提供大量 partials 与 shortcodes 以精简内容与模板。安装方式包括 Git submodule、git clone 或手动下载后放入 themes 目录,并在配置中设置 theme = "hguinav"。主题附带完整文档,覆盖布局、partials、shortcodes、blocks 与可配置参数。
需要注意的是,主题的演示图片、字体、图标等第三方素材需按各自许可单独核对,不能仅凭代码的 MIT 许可判断;域名、托管等外部服务可能另外收费。
适合你的项目吗?
适用场景
- 使用 Hugo 搭建需要多语言支持的博客
- 构建面向视障用户、强调无障碍访问的文档站点
- 需要在主题层面自定义 head、header、footer 等区域而不复制模板文件的项目
- 希望通过分类法管理作者信息并内置搜索的站点
适合人群
- 使用 Hugo 并重视无障碍访问的开发者
- 需要多语言博客或文档站点的个人或团队
- 希望利用 blocks 与 partials 进行主题定制、减少模板复制的用户
- 需要内置搜索与分类法支持的静态站点项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
推荐以 Git submodule 方式安装:git submodule add --name hguinav https://github.com/harrymkt/hguinav.git themes/hguinav,然后执行 git submodule update --remote
- 2
也可在 themes 目录下使用 git clone,或下载 ZIP 后手动放入 themes 目录
- 3
安装后在 Hugo 配置中设置 theme = "hguinav"
- 4
配置选项与用法请参考主题文档站点
- 5
演示图片、字体、图标等第三方素材需按各自许可单独核对,域名与托管等外部服务可能另外收费
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/harrymkt/hguinav/blob/main/LICENSE.mdhttps://github.com/harrymkt/hguinav/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 88 / 100
- 技术栈
- Hugo
- 网站类型
- 博客 · 文档
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-08-05
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: dc90cbb483f82a028bc1dbc4556f9891029a7c9db8f0e51e2bb845dac362a875
2026-10-02T17:08:32.921Z
来源文件 / 仓库# UI Navigation UI Navigation, or known as hguinav, is a modern multilingual [Hugo](https://gohugo.io) theme designed for accessibility over visual and made as easy as possible. As I am a blind developer, I would like to develop tools with accessibility so visually impaired users can use them. This theme is also available for Zola at [Zluinav](https://github.com/harrymkt/zluinav). This theme uses blocks as possible, as Hugo does not allow extend and super functions like other static site generators. [Theme demo Site](https://harrymkt.github.io/hguinav) ## License This theme is distributed under the terms of the [MIT License](https://github.com/harrymkt/hguinav/blob/main/LICENSE.md). ## Features - Accessibility: HGUINav is designed to be accessible as possible, especially for blind and visually impaired. This is done by using accessibility tags, such as ARIA, and other possible accessibility features. - SEO friendly. - Multilingual support with i18n: Hugo supports built-in advance multilingual feature, this theme only implements templates for it. - Customizable extrahead, extrafooter, head, header, footer, with partials, and extrahead, with blocks. - Customizable Documentation Site: build accessible [documentation sites](https://harrymkt.github.io/hguinav/docs/documentation) by using built-in template specifically designed for documentation. You set the layout of the section you want to document as well as in each page of that related document, or cascade just once in the main documentation page. - [Content variables](https://harrymkt.github.io/hguinav/docs/writing), such as `%title%`. - Sort pages by the way you like and for specific sections, which is by default not supported. This uses the [sort](https://harrymkt.github.io/hguinav/docs/partials/sort) partial. - Define per-section pagination size. - Define menu pages that check for multilingual with the special [menu](https://harrymkt.github.io/hguinav/docs/partials/menu) partial. - Built-in blog post templates. - Copy Code Blocks: Add code blocks which can then be copied using buttons and display the code language if available, helped by JavaScript. - Local Date Display: display dates in user's local timezone, no matter what timezone the date is set. - Taxonomies support. - Taxonomy based [author/user management](https://harrymkt.github.io/hguinav/docs/author-taxonomy), provided in demo. - Built-in [search](https://harrymkt.github.io/hguinav/docs/search) support, with a variety of search formats. - Use [blocks](https://harrymkt.github.io/hguinav/docs/blocks) to easily modify without having to copy some files to your layouts. - Use extensive partials and shortcodes to make your content and/or templates shorten. - Ability to toggle the use of JavaScript for both config and per-page frontmadder. - Comprehensive Documentation: HGUINav provides a full Comprehensive documentation including possible layouts, partials, shortcodes, blocks, configurable parameters, and more, everything as it updates. ## Installation Add as a Git submodule (recommended): ```bash git submodule add --name hguinav https://github.com/harrymkt/hguinav.git themes/hguinav git submodule update --remote ``` Or using git clone: ```bash cd themes git clone https://github.com/harrymkt/hguinav.git git fetch git pull ``` Or [download manually](https://github.com/harrymkt/hguinav/archive/refs/heads/main.zip) and paste in the themes directory. Next, set the theme in your config. `theme = "hguinav"` ## Configuration Please read the [documentation](https://harrymkt.github.io/hguinav) for more information and configuration options. ## Contribution Contributions to this theme are welcome, provided that the following requirements are met: - Use 2 level space indentation for HTML. Use 1 tab level indentation for CSS, TOML and JavaScript. If Markdown files need indentation, use 1 tab. - Be the templates accessible for visually impaired and/or blind and prefer readability. Don't worry, I will process in case accessibility issues before pull requests are merged. - Photos are not required in this theme. You may design with CSS for visual if you so wish. - When creating a pull request it is advised that you: - Use different branch other than main; this avoids issues with updating in case your pull request gets rejected. Thank you!
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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

hugo-book
Hugo Book 是一个面向文档场景的 Hugo 主题,定位很直接:把文档站点做得像一本朴素的书。
Hugo · 文档

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

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

docsy
Hugo theme for open source documentation
Hugo · 文档

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