完全不包含 CSS 与 JavaScript,仅输出 Hugo 模板生成的 HTML
hugo-theme-sk1 — Hugo 启动器模板
作者 J-Siu
SK1 是一个不含 CSS 与 JavaScript 的 Hugo 基础主题,用于学习 Hugo 主题结构与模板函数。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
首页使用 .Site.Params.mainSections 指定主内容区并支持分页
单页模板包含正文、日期、上一篇/下一篇、相关文章、标签与目录
页头显示副标题,页脚显示版权信息,并提供 404 页面
index.html 已删除并与 list.html 合并
仓库附带 Walk Through 教程与 exampleSite 测试流程
模板详细介绍
SK1(Skeleton 1)是 J-Siu 维护的 Hugo 主题,定位为演示与教学用途。它完全不包含 CSS 和 JavaScript,页面只输出 Hugo 模板生成的 HTML,因此适合用来观察 Hugo 主题的目录结构、模板继承关系以及各类内置函数的实际输出。
主题实现了 Hugo 的若干基础能力:首页通过 .Site.Params.mainSections 指定主内容区并支持分页;单页模板输出正文、日期、上一篇/下一篇、相关文章、标签和目录;页头显示副标题,页脚显示版权信息;另含 404 页面。index.html 已被删除并与 list.html 合并。
由于没有样式与脚本,SK1 不适合直接作为成品站点外观使用;它的价值在于作为学习 Hugo 主题开发的起点,或作为构建自有主题时的最小参考实现。仓库提供了配套的 Walk Through 文章和 exampleSite 测试流程。
适合你的项目吗?
适用场景
- 学习 Hugo 主题的目录结构与模板继承关系
- 对照实际输出理解 Hugo 内置模板函数的用法
- 作为编写自有 Hugo 主题时的最小参考实现
- 在无样式干扰的环境下调试内容与模板逻辑
适合人群
- 正在学习 Hugo 主题开发的初学者
- 需要参考最小模板实现的开发者
- 希望研究 Hugo 模板函数输出结果的人
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
在站点目录下用 git clone 或 git submodule add 将仓库放入 themes/sk1
- 2
在站点配置中设置 theme = "sk1",并按需配置 Params.mainSections、Params.subtitle 与 Params.copyright
- 3
主题自带默认 favicon,可在站点根目录创建空的 static/favicon.ico 禁用,或复制自定义图标覆盖
- 4
测试时可进入 exampleSite 目录,用 hugo server 并指定 config.toml 与 ../config.demo.toml 运行
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/J-Siu/hugo-theme-sk1/blob/master/LICENSEhttps://github.com/J-Siu/hugo-theme-sk1/blob/master/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- Hugo Themes
- 资料与维护参考分
- 资料较完整 · 79 / 100
- 技术栈
- Hugo
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-05-19
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-04
查看当时使用的来源资料
SHA-256: 4c37f8fc667f9da51c5530c7af2c37c44d7ea3ce51fd20a44e6c409b70adafa3
2026-10-03T19:40:13.274Z
来源文件 / 仓库# Hugo Theme - SK1 (Skeleton 1) [](https://www.paypal.com/donate/?business=HZF49NM9D35SJ&no_recurring=0¤cy_code=CAD)
Demo/Tutorial Hugo theme. Fully functional with no css, no javascript.
Intended for learning hugo theme structure and functions.
---
<!-- TOC ignore:true -->
### Table Of Content
<!-- TOC -->
- [SK Themes](#sk-themes)
- [Walk Through](#walk-through)
- [Demo](#demo)
- [Install](#install)
- [Testing](#testing)
- [Hugo Features Implemented](#hugo-features-implemented)
- [Site Config](#site-config)
- [Default Favicon](#default-favicon)
- [Contributors](#contributors)
- [Change Log](#change-log)
- [License](#license)
<!-- /TOC -->
### SK Themes
| Theme | GitHub | Hugo | Demo | Description |
| ----- | --------------------------------------------------- | ----------------------------------------- | ------------------------------- | ------------------------------------------------------------- |
| SK1 | [hugo-theme-sk1](//github.com/J-Siu/hugo-theme-sk1) | [SK1](//themes.gohugo.io/hugo-theme-sk1/) | [sk1.jsiu.dev](//sk1.jsiu.dev/) | Fully functional basic Hugo theme with no css, no javascript. |
| SK2 | [hugo-theme-sk2](//github.com/J-Siu/hugo-theme-sk2) | [SK2](//themes.gohugo.io/hugo-theme-sk2/) | [sk2.jsiu.dev](//sk2.jsiu.dev/) | Fully functional basic Hugo theme with minimum css. |
| SK3 | [hugo-theme-sk3](//github.com/J-Siu/hugo-theme-sk3) | [SK3](//themes.gohugo.io/hugo-theme-sk3/) | [sk3.jsiu.dev](//sk3.jsiu.dev/) | Full feature Hugo theme with Google AdSense support. |
### Walk Through
[Hugo Theme SK1 Walk Through](https://johnsiu.com/blog/hugo-theme-sk1-walkthrough/) - A starting guide for creating Hugo theme.
### Demo
SK1 demo site: https://sk1.jsiu.dev/ with content from [hugoBasicExample](https://github.com/J-Siu/hugoBasicExample).
### Install
In site directory:
- Using clone
```sh
git clone https://github.com/J-Siu/hugo-theme-sk1 themes/sk1
```
- Using submodule
```sh
git submodule add https://github.com/J-Siu/hugo-theme-sk1 themes/sk1
```
- Update submodule
```sh
git submodule update --recursive --remote
```
### Testing
```sh
git clone https://github.com/J-Siu/hugo-theme-sk1 sk1
cd sk1
# Pull example site.
git submodule update --recursive --init
cd exampleSite
hugo server -D --bind :: \
--config config.toml,../config.demo.toml \
--disableFastRender \
--renderToMemory \
--theme sk1 \
--themesDir ../../
```
### Hugo Features Implemented
- layouts
- \_default
- baseof.html
- [ ] No change, auto generated by Hugo
- list.html
- [x] `.Site.Params.mainSections` for home page listing.
- [x] Pagination
- single.html
- [x] Content
- [x] Date
- [x] Next/Prev
- [x] Related
- [x] Tags
- [x] ToC
- partials
- footer.html
- [x] Site.Params.copyright
- head.html
- [ ] No change, auto generated by Hugo
- header.html
- [x] Site.Params.subtitle
- 404.html
- [x] Text "Page Not Found."
- index.html
- [x] Deleted. Merged with list.html
### Site Config
```toml
baseURL = "https://sk1.jsiu.dev"
theme = "sk1"
title = "SK1"
[Params]
mainSections = "post"
subtitle = "A Hugo Theme"
```
### Default Favicon
SK themes come with default favicon.
Disable default favicon:
```sh
# At Hugo site root
touch static/favicon.ico
```
Override default favicon:
```sh
# At Hugo site root
cp <your favicon.ico> static/favicon.ico
```
### Contributors
- [John Sing Dao Siu](https://github.com/J-Siu)
### Change Log
- [CHANGELOG.md](CHANGELOG.md)
### License
The MIT License (MIT)
Copyright (c) 2025 John Siu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

hugo-xmin
eXtremely Minimal Hugo theme: about 140 lines of code in total, including HTML and CSS (with no dependencies)
Hugo · 启动器

hugo-theme-gallery
Gallery Theme for Hugo
Hugo · 启动器

reveal-hugo
📽️ Create rich HTML-based presentations with Hugo and Reveal.js
Hugo · 启动器

anatole
Anatole is a minimalistic two-column theme for Hugo.
Hugo · 启动器

hugo-theme-diary
Moments piled up. A Hugo theme ported from SumiMakito/hexo-theme-Journal.
Hugo · 启动器

risotto
A minimalist, responsive hugo theme inspired by terminal ricing aesthetics.
Hugo · 启动器
