在 SK1 基础上加入最少量的 CSS,不使用 JavaScript
hugo-theme-sk2 — Hugo 启动器模板
作者 J-Siu
Hugo Theme - SK2 是一个教学演示用的 Hugo 主题,在 SK1 基础上加入最少量的 CSS,不使用 JavaScript,提供卡片列表、可折叠目录、水平菜单与分页等基础功能。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
提供卡片列表、可折叠目录、水平菜单与水平分页
支持副标题、摘要、版权起始年份和 Git 修改日期
通过 config.toml 的 Params 配置 mainSections、startdate、subtitle、summary、toc
自带默认 favicon,可在站点根目录覆盖或禁用
采用 MIT 许可,允许免费使用、修改、商用和分发
模板详细介绍
hugo-theme-sk2 是作者 John Siu 的 SK 系列主题中的第二个,定位为演示与教学用途。它建立在 hugo-theme-sk1 之上,区别在于加入了最少量的 CSS,同时保持不使用 JavaScript。主题提供卡片列表、可折叠的目录、水平菜单、水平分页、副标题、摘要、版权起始年份和 Git 修改日期等页面元素。
主题通过 config.toml 中的 Params 进行配置,可设置 mainSections、startdate、subtitle、summary 和 toc 等参数。仓库自带默认 favicon,可通过在站点根目录创建空的 static/favicon.ico 来禁用,或替换为自己的图标。
使用方式为在 Hugo 站点目录中克隆或作为 git submodule 添加到 themes/sk2。仓库包含示例站点,可通过 git submodule update --recursive --init 拉取后运行 hugo server 进行本地测试。该主题采用 MIT 许可,免费使用、修改、商用和分发,但演示图片、字体、图标等第三方素材需按各自许可核对。
适合你的项目吗?
适用场景
- 作为学习 Hugo 主题结构和工作方式的示例项目
- 用于搭建以文本内容为主、不需要 JavaScript 的简单站点
- 作为开发自定义 Hugo 主题时的起点或参考
- 在本地通过示例站点测试 Hugo 的配置与渲染流程
适合人群
- 希望了解 Hugo 主题基本构成的开发者
- 需要轻量、无 JavaScript 主题的 Hugo 用户
- 以教学或演示为目的搭建站点的用户
- 接受最少样式、偏好简洁页面结构的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
在 Hugo 站点目录中执行 git clone https://github.com/J-Siu/hugo-theme-sk2 themes/sk2,或使用 git submodule add 添加
- 2
在 config.toml 中设置 theme = "sk2",并按需配置 Params 下的 mainSections、startdate、subtitle、summary、toc
- 3
如需本地测试,克隆仓库后执行 git submodule update --recursive --init 拉取示例站点,再在 exampleSite 目录运行 hugo server
- 4
默认 favicon 可通过在站点根目录创建空的 static/favicon.ico 禁用,或替换为自己的图标文件
- 5
演示图片、字体、图标等第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/J-Siu/hugo-theme-sk2/blob/master/LICENSEhttps://github.com/J-Siu/hugo-theme-sk2/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: 5debd13f3c07134b9c6b8c243b4acbec3942d625d9896c4fb15c460f1d0c3c8b
2026-10-03T23:46:26.349Z
来源文件 / 仓库# Hugo Theme - SK2 (Skeleton 2) [](https://www.paypal.com/donate/?business=HZF49NM9D35SJ&no_recurring=0¤cy_code=CAD) Demo/Tutorial Hugo theme. Fully functional with minimum css, no javascript, build on top of [hugo-theme-sk1](https://github.com/J-Siu/hugo-theme-sk1). --- ### Table Of Content <!-- TOC --> - [SK Themes](#sk-themes) - [Demo](#demo) - [Usage](#usage) - [Testing](#testing) - [Features](#features) - [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. | ### Demo SK2 demo site: https://sk2.jsiu.dev/ with content from [hugoBasicExample](https://github.com/J-Siu/hugoBasicExample). ### Usage - Clone In site directory: ```sh git clone https://github.com/J-Siu/hugo-theme-sk2 themes/sk2 ``` - Submodule In site directory: ```sh git submodule add https://github.com/J-Siu/hugo-theme-sk2 themes/sk2 ``` ### Testing ```sh git clone https://github.com/J-Siu/hugo-theme-sk2 sk2 cd sk2 # Pull example site. git submodule update --recursive --init cd exampleSite hugo server -D --bind :: \ --config config.toml,../config.demo.toml \ --disableFastRender \ --renderToMemory \ --theme sk2 \ --themesDir ../../ ``` ### Features - [x] Card list - [x] Collapsible table of content - [x] Copyright start year - [x] Git modify date - [x] Horizontal menu - [x] Horizontal pagination - [x] Minimum css - [x] Sub-title - [x] Summary ### Site Config `config.demo.toml` ```toml baseURL = "https://sk2.jsiu.dev" theme = "sk2" title = "SK2" [Params] mainSections = "post" startdate = "2012-12-02" subtitle = "A Hugo Theme" summary = true toc = true ``` ### 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 · 启动器
