Hugo启动器

hugo-theme-sk3 — Hugo 启动器模板

作者 J-Siu

基于 hugo-theme-sk2 扩展的 Hugo 主题,加入 Google AdSense、Analytics、Disqus、社交分享与 PayPal 按钮等配置项,采用深色极简布局。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

在 hugo-theme-sk2 基础上扩展,加入 Google AdSense 支持

02

集成 Google Analytics、Disqus 评论与 Iubenda(GDPR/CCPA)

03

提供社交链接、社交分享按钮与 PayPal 按钮配置

04

默认深色配色,可通过 Params.color 切换为浅色主题

05

列表页卡片布局可配置日期、摘要显示与桌面端列宽

06

支持自定义 CSS、自定义 JavaScript、Open Graph 与 Twitter Card

模板详细介绍

hugo-theme-sk3 是 SK 系列 Hugo 主题的第三个版本,在 hugo-theme-sk2 的基础上构建,定位为功能较完整的博客主题。相比同系列前作,它增加了 Google AdSense 支持,并整合 Google Analytics、Disqus 评论、Iubenda(GDPR/CCPA)、PayPal 按钮、社交链接与社交分享等可配置模块。主题默认使用深色配色,通过 Params.color 可切换为浅色。

布局方面,主题提供列表页卡片式排版,Params.card 控制是否显示日期与摘要,以及桌面端列宽(如 32% 对应三列)。页面宽度由 Params.pagewidth 控制,默认 1200px,小屏幕下自动变为 100%。Markdown 标题层级有约定:站点标题为 H1、页面标题为 H2,因此正文标题应从三级(###)开始。

配置集中在站点 Params 下,涵盖自定义 CSS/JavaScript、Open Graph、Twitter Card、favicon、canonical 链接、目录默认展开状态、页脚版权起始年份等。社交链接与分享按钮分别通过 Params.sociallink 和 Params.socialshare 按平台开关。主题还支持按页面覆盖设置。

使用限制:从 v1.x.x 升级到 v2.x.x 时配置文件需要更新,因为存在大量字段改名。演示站点内容来自 hugoBasicExample。主题代码采用 MIT 许可,但演示图片、字体、图标等第三方素材需单独核对许可。

Hugo启动器

适合你的项目吗?

适用场景

  • 搭建以文章列表为主的个人博客或内容站点
  • 需要在页面中嵌入 Google AdSense 广告位的 Hugo 站点
  • 希望通过配置文件接入 Disqus 评论与 Google Analytics 的站点
  • 需要社交分享按钮和 PayPal 捐赠入口的博客
  • 偏好深色极简风格、并希望按平台开关社交链接的站点

适合人群

  • 使用 Hugo 构建博客并需要广告、统计、评论等常见集成功能的开发者
  • 接受通过站点 Params 配置主题、不要求可视化后台的用户
  • 需要深色或浅色可切换配色的内容站点
  • 从 SK 系列主题升级、愿意按 v2 配置字段调整配置文件的用户

上手与定制指南

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

  1. 1

    在站点目录中通过 git clone 或 git submodule 将仓库放入 themes/sk3 目录

  2. 2

    从 v1.x.x 升级到 v2.x.x 时需更新配置文件,因为存在大量字段改名

  3. 3

    正文 Markdown 标题建议从三级(###)开始,站点标题为 H1、页面标题为 H2

  4. 4

    主题代码为 MIT 许可,但演示图片、字体、图标等第三方素材需按各自许可核对

  5. 5

    演示站点内容来自 hugoBasicExample,可参考其示例站点进行本地测试

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • PayPal 捐赠按钮功能需要用户自行拥有 PayPal 账户并完成按钮创建流程,主题本身不提供账户或代建服务。
  • 启用 Google AdSense 广告需自行申请并填入 AdSense ID/Tag,属于外部服务,需遵守 Google 的相关条款。
  • Google Analytics 统计功能需自行注册并填入 Analytics ID,属于外部服务,需遵守 Google 的相关条款。
  • Disqus 评论功能需自行注册 Disqus 并填入 shortname,属于外部服务,需遵守 Disqus 的相关条款。
  • 从 v1.x.x 升级到 v2.x.x 时必须更新配置文件,因为存在大量字段改名,旧配置无法直接沿用。
  • 社交图标依赖 Font Awesome,需遵守其许可;README 仅指向免费基础使用说明,未声明主题内所有图标素材的授权范围。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

You need your own Paypal account to go through the button creation process.

README 原文

AdSenseId | text | "" | AdSense ID/Tag.

README 原文

| id | text | "" | Google Analytics ID |

README 原文

| shortname | text | "" | Disqus shortname. |

README 原文

When upgrading from v1.x.x to v2.x.x, config file need to be updated as there are lot of name changes.

README 原文

Social buttons provided by [Font Awesome](//github.com/FortAwesome/Font-Awesome) Brands([free](//fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use)).

README 原文
https://github.com/J-Siu/hugo-theme-sk3/blob/master/LICENSEhttps://github.com/J-Siu/hugo-theme-sk3/blob/master/README.md

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: 915b7e02b7d158cd17ebd5827aa0dd6676e0fa6a7d64cbaf78d1305d5bc01c4e

2026-10-03T20:46:42.613Z

来源文件 / 仓库
# Hugo Theme - SK3 (Skeleton 3) [![Paypal donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate/?business=HZF49NM9D35SJ&no_recurring=0&currency_code=CAD)

Full feature Hugo theme build on top of [hugo-theme-sk2](//github.com/J-Siu/hugo-theme-sk2) with Google AdSense (UA/GA4) support.

---

<!-- TOC -->

- [SK Themes](#sk-themes)
- [Sites](#sites)
- [Version 2 Breaking Changes](#version-2-breaking-changes)
- [Install](#install)
- [Testing](#testing)
- [Features](#features)
- [Layout](#layout)
  - [Markdown Style](#markdown-style)
  - [Site Config](#site-config)
  - [Social Network](#social-network)
  - [Share Button](#share-button)
  - [Theme Color](#theme-color)
  - [Layout Dimensions](#layout-dimensions)
  - [Custom CSS](#custom-css)
  - [Custom Javascript](#custom-javascript)
  - [Favicon](#favicon)
  - [Disqus](#disqus)
  - [Google](#google)
    - [AdSense](#adsense)
    - [Analytics](#analytics)
  - [Paypal Button](#paypal-button)
- [Per Page Settings](#per-page-settings)
- [Sample Config](#sample-config)
- [Font Awesome](#font-awesome)
- [Thank You](#thank-you)
- [Contributors](#contributors)
- [Change Log](#change-log)
- [License](#license)

<!-- /TOC -->
<!--more-->

### 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.          |

### Sites

SK3 demo site: https://sk3.jsiu.dev/ with content from [hugoBasicExample](https://github.com/J-Siu/hugoBasicExample).

John Siu Blog: [JohnSiu.com](//JohnSiu.com/)

### Version 2 Breaking Changes

When upgrading from v1.x.x to v2.x.x, config file need to be updated as there are lot of name changes.

### Install

In site directory:

- Using clone

  ```sh
  git clone https://github.com/J-Siu/hugo-theme-sk3 themes/sk3
  ```

- Using submodule

  ```sh
  git submodule add https://github.com/J-Siu/hugo-theme-sk3 themes/sk3
  ```

- Update submodule

  ```sh
  git submodule update --recursive --remote
  ```

### Testing

```sh
git clone https://github.com/J-Siu/hugo-theme-sk3 sk3
cd sk3

# Pull example site.
git submodule update --recursive --init

cd exampleSite
hugo server -D --bind :: \
--config config.toml,../config.demo.toml \
--disableFastRender \
--renderToMemory \
--theme sk3 \
--themesDir ../../
```

### Features

- [x] Blog
- [x] Custom CSS
- [x] Custom Javascript
- [x] Customizable
- [x] Disqus
- [x] Google AdSense
- [x] Google Analytics
- [x] Iubenda (GDPR/CCPA)
- [x] PayPal
- [x] Minimalist Design
- [x] Responsive
- [x] Social Links
- [x] Social Share

### Layout

#### Markdown Style

Headline in markdown should start at level 3 (###), as site title is H1 and page title is H2.

#### Site Config

**[Params]**

| Field                | Type       | Default Value | Description                                                                                                                                                                                                                                               |
| -------------------- | ---------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| customCss            | text array | []            | See [Custom CSS](#custom-css)                                                                                                                                                                                                                             |
| customJs             | text array | []            | See [Custom Javascript](#custom-javascript)                                                                                                                                                                                                               |
| description          | text       | ""            | Open Graph / Twitter Card description                                                                                                                                                                                                                     |
| enableExternalSvg    | bool       | false         | `true` will load social icon using Font Awesome external css.                                                                                                                                                                                             |
| enableInfoBox        | bool       | false         | Enable page info box style                                                                                                                                                                                                                                |
| enableListLastModify | bool       | false         | Use last modify date in list page.                                                                                                                                                                                                                        |
| enableOpenGraph      | bool       | false         | Enable Open Graph                                                                                                                                                                                                                                         |
| enableOpenToc        | bool       | true          | Control if table of content(Toc) is open By default                                                                                                                                                                                                       |
| enableTwitterCard    | bool       | false         | Enable Twitter Card                                                                                                                                                                                                                                       |
| enableUserCanonical  | bool       | false         | Add `rel="canonical"` meta link with absolute URL to each page. Only use this if site require **user-declared canonical** meta. This is not related to [Hugo Canonicalization](//gohugo.io/content-management/urls/#canonicalization) nor `canonifyurls`. |
| favicon              | text       | ""            | See [Favicon](#favicon)                                                                                                                                                                                                                                   |
| images               | text array | []            | Open Graph / Twitter Card image                                                                                                                                                                                                                           |
| mainSections         | text       | n/a           | Hugo default to section with most entries when For generating homepage list.                                                                                                                                                                              |
| pagewidth            | text(px)   | "1200px"      | Page width will automatically set to 100% on small screen(<993px).                                                                                                                                                                                        |
| startdate            | text       | ""            | eg. "2012-12-02". Year is extracted and generate copyright line "2012-(current year)". Site `copyright` override this behavior.                                                                                                                           |
| subtitle             | text       | ""            | If defined, sub-title appear after site title in smaller font.                                                                                                                                                                                            |
| title                | text       | ""            | Open Graph / Twitter Card title                                                                                                                                                                                                                           |

#### Social Network

**[Params.sociallink]** Show social network buttons if IDs are provided.

| Field          | Type | Default Value |
| -------------- | ---- | ------------- |
| facebook       | text | ""            |
| flickr         | text | ""            |
| instagram      | text | ""            |
| linkedin       | text | ""            |
| pinterest      | text | ""            |
| reddit         | text | ""            |
| rss            | bool | false         |
| tumblr         | text | ""            |
| twitter        | text | ""            |
| vimeo          | text | ""            |
| youtubechannel | text | ""            |
| youtubeuser    | text | ""            |

#### Share Button

**[Params.socialshare]** Control if share buttons appear at the bottom of page.

| Field     | Type | Default Value |
| --------- | ---- | ------------- |
| facebook  | bool | false         |
| instagram | bool | false         |
| linkedin  | bool | false         |
| pinterest | bool | false         |
| reddit    | bool | false         |
| telegram  | bool | false         |
| twitter   | bool | false         |
| vk        | bool | false         |

#### Theme Color

**[Params.color]** Control theme color. Default is a dark theme.

| Field  | Type | Default Value | Light Theme\*\* |
| ------ | ---- | ------------- | --------------- |
| bg     | text | "#181a1b"     | "white"         |
| border | text | "white"       | ""black"        |
| link   | text | "#3d84ff"     | "#3d84ff"       |
| text   | text | "white"       | "black"         |

#### Layout Dimensions

**[Params.card]** Control list page layout.

| Field   | Type    | Default Value | Description                                                                                                           |
| ------- | ------- | ------------- | --------------------------------------------------------------------------------------------------------------------- |
| date    | bool    | true          | Show data for each item in list                                                                                       |
| summary | bool    | true          | Show summary for each item in list                                                                                    |
| width   | text(%) | "32%"         | Control list page column width on desktop(>992px). 32% for 3 columns. 24% for 4 columns, etc. Single column use 100%. |

#### Custom CSS

If you add custom css files `abc.css` and `def.css` like following:

```sh
./
├── archetypes/
├── content/
├── public/
├── resources/
├── static/
│   └── css/
│       ├── abc.css
│       └── def.css
├── themes/
└── config.toml
```

The final path of your css files will be `/css/abc.css` and `/css/def.css`:

```toml
[Params]
customCss = ["/css/abc.css", "/css/def.css"]
```

#### Custom Javascript

If you add custom javascript `abc.js` and `def.js` like following:

```sh
./
├── archetypes/
├── content/
├── public/
├── resources/
├── static/
│   └── js/
│       ├── abc.js
│       └── def.js
├── themes/
└── config.toml
```

The final path of your javascript files will be `/js/abc.js` and `/js/def.js`:

```toml
[Params]
customJs = ["/js/abc.js", "/js/def.js"]
```

#### Favicon

Path of favicon of the published site.

If favicon `logo.svg` is put inside `static` like following:

```sh
./
├── archetypes/
├── content/
├── public/
├── resources/
├── static/
│   └── logo.svg
├── themes/
└── config.toml
```

The final path will be `/logo.svg`:

```toml
[Params]
favicon = "/logo.svg"
```

SK themes come with default favicon. To disable it:

```sh
# At Hugo site root
touch static/favicon.ico
```

#### Disqus

Section `[services.disqus]`

| Field     | Type | Default Value | Description       |
| --------- | ---- | ------------- | ----------------- |
| shortname | text | ""            | Disqus shortname. |

#### Google

##### AdSense

Section `[Params.google]`

| Field             | Type | Default Value | Description                    |
| ----------------- | ---- | ------------- | ------------------------------ |
| AdSenseId         | text | ""            | AdSense ID/Tag.                |
| enablePageLevelAd | bool | false         | Enable/Disable page level ads. |

##### Analytics

Section `[services.googleAnalytics]`:

| Field | Type | Default Value | Description         |
| ----- | ---- | ------------- | ------------------- |
| id    | text | ""            | Google Analytics ID |

#### Paypal Button

**[Params.paypal]** Enable Paypal donation button along side share buttons.

| Field           | Type | Default Value | Description                                               |
| --------------- | ---- | ------------- | --------------------------------------------------------- |
| amount          | text | "0"           | Default amount.                                           |
| businessId      | text | ""            | Paypal business Id. Button will only show if this is set. |
| currency        | text | ""            | Currency code, eg. "CAD", "USD".                          |
| enableRecurring | bool | false         | Show recurring check-box.                                 |

Information can be obtain by going through [Paypal Donate Button](https://www.paypal.com/donate/buttons?type=C&fromManage=true). You need your own Paypal account to go through the button creation process.

### Per Page Settings

- Disable Disqus
- Disable Prev/Next
- Disable Related
- Disable Table of Content

  To disable the above, in front matter:

  ```yaml
  comment = false
  prevnext = false
  related = false
  toc = false
  ```

### Sample Config

- [config.demo.toml](config.demo.toml)

### Font Awesome

Social buttons provided by [Font Awesome](//github.com/FortAwesome/Font-Awesome) Brands([free](//fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use)).

`fa-svg-extract.sh` is used to extract icon from Font Awesome sprites/brands.svg and sprites/solid.svg.

```sh
./fa-svg-extract.sh brands.svg > sk3-fa.svg
./fa-svg-extract.sh solid.svg >> sk3-fa.svg
```

### Thank You

- SK3 inspired by [Vimux/Binario](//github.com/Vimux/Binario). Check it out too!

### Contributors

- [John Sing Dao Siu](//github.com/J-Siu)

### Change Log

- [CHANGELOG.md](CHANGELOG.md)

### License

The MIT License (MIT)

Copyright (c) 2025 John, Sing Dao, 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.
反馈内容错误

看看同类模板

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