Hugo作品集博客工具站

hugo-theme-introduction — Hugo 作品集模板

作者 victoriadrake

Introduction 是 Hugo 的极简主题,可配置为单页或包含多个区块的完整站点,内置 Projects 与 Blog 板块、多语言、明暗主题和 Markdown 驱动的首页分区。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

可配置为单页站点,也可作为包含多个区块的完整站点

02

首页分区由 content/home/ 下的 Markdown 文件生成,支持 weight 排序与配图

03

内置 Projects 与 Blog 板块,项目支持外部链接、时间线与多图轮播画廊

04

支持多语言,i18n/ 目录提供多种语言翻译文件

05

包含明暗主题、页面淡入与锚点平滑滚动、Markdown 排版样式与语法高亮

06

样式使用 Sass 与 Sass 变量,通过 Hugo Pipes 和 PostCSS 编译

模板详细介绍

Introduction 是面向 Hugo 静态站点生成器的主题,定位为极简且用途灵活:既可以做成单页站点,也可以按多区块的完整站点来组织内容。首页内容由 content/home/ 下的 Markdown 文件构成,每个文件对应首页的一个分区,并可通过 frontmatter 中的 weight 排序、通过 image 在分区左侧显示图片;contact.md 会固定显示为首页最后一个分区。主题内置 Projects 与 Blog 两个板块,项目支持独立页面、外部链接、项目时间线以及多图轮播画廊,博客文章也会出现在首页的 Blog 分区。站点配置集中在 config.toml,菜单、自定义 CSS 与自定义 JavaScript 都通过配置项接入。主题支持多语言,i18n/ 目录下提供多种语言的翻译文件,可新增 .toml 文件扩展语言。主题包含明暗两套主题样式,页面加载有淡入效果,锚点链接为平滑滚动,Markdown 内容(包括文章标题)有统一排版样式,并支持语法高亮。样式使用 Sass 编写,通过 Hugo Pipes 与 PostCSS 编译为 CSS,Sass 变量便于调整配色。主题还提供可选的 Plausible 与 Google Analytics 4 统计接入、Disqus 评论,以及联系分区中的本地时间显示。使用限制方面:生产构建需要 Hugo extended 0.163.0 或更高版本,并需要 Node.js 22.12 或更高版本以及主题本地的 PostCSS 依赖;在站点中引用该主题时,需要把主题的 node_modules/.bin 加入 PATH 后再执行构建。hugo server 预览时 Sass 不经 PostCSS 编译,生产构建才使用 PostCSS 添加浏览器前缀。示例站点演示由 Netlify 构建,netlify.toml 中的设置优先于 Netlify 面板中的同名设置。

Hugo作品集博客工具站

适合你的项目吗?

适用场景

  • 搭建个人作品集站点,用 Projects 板块展示项目并配多图画廊
  • 建立个人博客,文章同时出现在首页 Blog 分区
  • 制作单页个人介绍页,用首页分区组织简介、项目与联系方式
  • 搭建多语言个人站点,为不同语言提供并行内容

适合人群

  • 使用 Hugo 并希望快速搭建个人作品集或博客的开发者
  • 需要单页与多区块两种组织方式之间灵活切换的个人站点
  • 需要多语言内容与明暗主题切换的站点
  • 习惯用 Markdown 和 config.toml 管理内容与配置的用户

上手与定制指南

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

  1. 1

    需要 Hugo extended 0.163.0 或更高版本;生产构建还需要 Node.js 22.12 或更高版本

  2. 2

    在主题目录执行 npm ci --ignore-scripts 安装锁定版本的 PostCSS 依赖

  3. 3

    在站点中使用该主题时,构建前需将主题的 node_modules/.bin 加入 PATH

  4. 4

    可通过 git clone 或 git submodule 将主题放入 themes/introduction

  5. 5

    从 exampleSite/ 复制 config.toml 到站点根目录并按注释修改配置

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

  • 允许免费使用、修改、商用和分发;分发时需随附 Apache-2.0 许可证。
  • 修改过的文件需显著标明改动,并保留相关版权、专利、商标及归属声明。
  • 若原项目附有 NOTICE 文件,分发衍生作品时需保留其中适用的归属声明。
  • 许可包含适用的贡献者专利授权;发起许可所述专利诉讼会终止该专利授权,且不授予商标使用权。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 使用该主题需要 Hugo extended 0.163.0 或更高版本,普通版 Hugo 无法满足要求。
  • 生产构建还需要 Node.js 22.12 或更高版本,并需安装主题本地的 PostCSS 依赖。
  • 在站点中引用该主题时,构建前必须把主题的 node_modules/.bin 加入 PATH,否则生产构建无法使用 PostCSS。
  • 启用 Plausible 统计需要自行注册 Plausible 账号,属于外部服务,可能产生费用。
  • 配置 Google Analytics 4 测量 ID 后,主题会加载 Google 的 gtag.js 外部脚本。
  • 启用 Disqus 评论需要设置 disqusshortname,评论功能依赖 Disqus 这一外部服务。
  • 运行 npm test 构建回归测试需要 Python 3.9+ 和 Google Chrome。
  • 官方 Netlify 演示固定使用 Hugo 0.165.0 与 Node.js 24,与主题最低支持版本不同。
  • 使用 Netlify 部署时,netlify.toml 中的设置会覆盖 Netlify 面板中的同名设置。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 Apache-2.0 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

no-charge, royalty-free, irrevocable copyright license

许可证原文

Requires **Hugo extended 0.163.0 or later**.

README 原文

Production builds also require **Node.js 22.12 or later** and the theme's local PostCSS dependencies.

README 原文

PATH="$PWD/themes/introduction/node_modules/.bin:$PATH" hugo

README 原文

You'll need your own Plausible account - see [plausible.io](https://plausible.io/) for more.

README 原文

The theme loads Google's `gtag.js` when this ID is present.

README 原文

Set `disqusshortname` in `config.toml` to activate Hugo's [internal Disqus template](https://gohugo.io/templates/internal/#disqus).

README 原文

Run `npm test` for the build regressions (Python 3.9+ and Google Chrome required)

README 原文

The demo pins **Hugo 0.165.0** and **Node.js 24**.

README 原文

Settings in `netlify.toml` take precedence over matching settings in the Netlify dashboard.

README 原文
https://github.com/victoriadrake/hugo-theme-introduction/blob/master/LICENSEhttps://github.com/victoriadrake/hugo-theme-introduction/blob/master/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
Hugo Themes
资料与维护参考分
资料较完整 · 96 / 100
技术栈
Hugo
网站类型
作品集 · 博客 · 工具站
这个分数如何计算

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: b803388c56f98fd935ef4de1830055af1984e0291e4f287d778e1aab77047cb1

2026-10-02T10:32:10.658Z

来源文件 / 仓库
# Introduction theme for Hugo

[![Netlify Status](https://api.netlify.com/api/v1/badges/51d09485-c9d1-4a88-90ba-894f09e5a29d/deploy-status)](https://app.netlify.com/sites/hugo-introduction/deploys)
![Test Hugo versions](https://github.com/victoriadrake/hugo-theme-introduction/workflows/test-versions/badge.svg)
![Latest Release](https://img.shields.io/github/tag/victoriadrake/hugo-theme-introduction.svg)

Introduction is a minimalist, highly-versatile theme for Hugo. It can be configured as a single page, or as a full-featured site with multiple sections. It is multilingual, responsive, and includes a light and dark theme.

New to the Hugo static site generator? [Learn the fundamentals here](https://gohugo.io/categories/fundamentals).

![Device mockups](https://github.com/victoriadrake/hugo-theme-introduction/blob/master/images/mockup.png)

Features:

- Multilingual - supports side-by-side content in different language versions
- Custom index page sections from Markdown files
- Projects and Blog sections
- Page load fade-in CSS effect and smooth scrolling to anchor links
- Straightforward customization via `config.toml`
- Styled Markdown throughout, including post titles
- Syntax highlighting

Developer-friendly:

- Sass files included with instant compiling to CSS thanks to [Hugo Pipes](https://gohugo.io/hugo-pipes/postcss/) and [PostCSS](https://gohugo.io/hugo-pipes/postcss/)
- Thoughtful use of Sass variables makes creating new colour schemes easy

## Getting started

Requires **Hugo extended 0.163.0 or later**. See the [Hugo installation instructions](https://gohugo.io/getting-started/installing/). The minimum supported version and the latest release are tested in CI.

Production builds also require **Node.js 22.12 or later** and the theme's local PostCSS dependencies. From the theme directory, install the locked versions:

```sh
npm ci --ignore-scripts
```

When using the theme inside another Hugo site, put the theme's local tools on your path before building. From your site's root:

```sh
PATH="$PWD/themes/introduction/node_modules/.bin:$PATH" hugo
```

`hugo server` previews compile Sass without PostCSS. Production builds use PostCSS to add browser prefixes; no global npm packages are required.

## Get the theme

Run from the root of your Hugo site:

```sh
git clone https://github.com/victoriadrake/hugo-theme-introduction.git themes/introduction
```

Alternatively, you can include this repository as a [git submodule](https://git-scm.com/docs/gitsubmodules). This makes it easier to update this theme if you have your Hugo site in git as well:

```sh
git submodule add https://github.com/victoriadrake/hugo-theme-introduction.git themes/introduction
```

## Preview the theme

Introduction ships with a fully configured example site. From the theme directory:

```sh
npm run dev
```

Then visit `http://localhost:1313/` in your browser to view the example site.

To build the example site, run `npm run build`. Output goes to `docs/`. Override the example URL with `HUGO_BASEURL=https://example.org/ npm run build` when needed.

Run `npm test` for the build regressions (Python 3.9+ and Google Chrome required) and `npm run check:html` after building to check internal links and assets, including accidental `example.com` URLs. The tests use temporary copies and leave local content and generated resources untouched.

This modernization keeps the existing content and configuration model. Navigation and project dialogs use native JavaScript; the existing Owl Carousel still uses bundled jQuery.

## Netlify demo

The [live demo](https://hugo-introduction.netlify.app/) automatically builds and publishes successful pushes to `master`. [netlify.toml](netlify.toml) controls the build: it runs `npm run build && npm run check:html` from the repository root and publishes `docs/`.

The demo pins **Hugo 0.165.0** and **Node.js 24**. This is separate from the theme's minimum supported Hugo version, 0.163.0. New Hugo releases are tested by CI, but the demo's pin must be updated explicitly. Settings in `netlify.toml` take precedence over matching settings in the Netlify dashboard.

After deploying, verify the Hugo version in the production build log and check that images load from the demo domain. A failed build leaves the previous successful deployment live.

## Add content

The following explains how to add content to your Hugo site. You can find sample content in the `exampleSite/` folder.

## Introduction section

Create `index.md`:

```sh
hugo new home/index.md
```

The `title` frontmatter will be the first large heading.

The content of `index.md` will be shown as a subtitle line.

You might want to set `headless` to `true` in the frontmatter. See [headless bundles](https://gohugo.io/content-management/page-bundles/#headless-bundle) for more information.

## Home page

Content for the home page lives under `content/home/`. You may add as many files as you want to in markdown format.

Each markdown file will show as a section on the home page and can be ordered by the `weight` value in the file's frontmatter. You can set `image` to show an image on the left side of the section. The image file must be in the `content/home/` folder.

You may add a contact section by creating
`contact.md`:

```sh
hugo new home/contact.md
```

This will always be shown as the last section on the home page.

## Projects section

Introduction provides an easy way to showcase your projects. Each project can even have its own gallery, shown as an image carousel.

Start by creating an index file for the projects section:

```sh
hugo new projects/_index.md
```

Add a `title` and some optional content to the file.
Add an optional `weight` for ordering projects section.

To create a project, run:

```sh
hugo new projects/YourProjectName/index.md
```

The frontmatter of your new file contains some comments to help your configure your project.

You can set `external_link` to make the project link to another website.

Add images to your project by placing image files in the `YourProjectName/` folder. If you add more then one photo, they will display as a carousel gallery. Images will be ordered by filename. The first image will be shown as the project preview image. You can change the order of your images by adding a `weight` to that resource's parameters:

```sh
resources:
    - src: NameOfYourImage.jpg
      params:
          weight: -100
project_timeframe: "June-December"
```

You can add a `project_timeframe` parameter to the frontmatter of your project to optionally display an arbitrary string on the homepage and modal.

## Blog section

Create an index file for the blog:

```sh
hugo new blog/_index.md
```

Add an optional `weight` for ordering blog section on your homepage

Create a new blog post with:

```sh
hugo new blog/YourEntryTitle.md
```

Posts will also display in the Blog section of the home page.

## Configure your site

From `exampleSite/`, copy `config.toml` to the root folder of your Hugo site and change the fields as you like. Helpful comments are provided.

## Multilingual

Introduction currently ships with support for [many languages](https://github.com/victoriadrake/hugo-theme-introduction/tree/master/i18n). Contributions for other language translations are welcome.

To create a new language translation, add the `.toml` file to the `i18n/` folder. See the existing files for the necessary fields.

See the [hugo documentation](https://gohugo.io/content-management/multilingual/) for more details.

## Menu

Introduction contains a default menu. If you want to override this, you can do so by defining a `menu.main` in `config.toml`.

Optionally, you can disable this menu by setting `showMenu` to `false` in your `config.toml`.

## Contact section clock

Introduction can optionally show your current local time in your [contact section](https://hugo-introduction.netlify.app/#contact). This uses vanilla JS and variables you provide. You can set this up by copying the settings in the exampleSite `config.toml` for `localTime`, `timeZone`, and `timeFormat`.

## Plausible

You can easily use Plausible.io for analytics by setting `plausible = true` in your `config.toml`. Plausible offers a privacy-friendly alternative to Google Analytics. You'll need your own Plausible account - see [plausible.io](https://plausible.io/) for more.

## Google Analytics

For Google Analytics 4, set the measurement ID in your configuration:

```toml
[services.googleAnalytics]
  id = "G-MEASUREMENT_ID"
```

The theme loads Google's `gtag.js` when this ID is present.

## Disqus

Set `disqusshortname` in `config.toml` to activate Hugo's [internal Disqus template](https://gohugo.io/templates/internal/#disqus).

## Custom CSS

You can add custom CSS files by placing them under `assets/` and adding the paths to the files to the `customCSS` list in `config.toml`.

## Custom JavaScript

You can add custom JavaScript files by placing them under `assets/` and adding the paths to the files to the `customJS` list in `config.toml`.

## Issues

If you have a question or get stuck, please [open an issue](https://github.com/victoriadrake/hugo-theme-introduction/issues) for help and to help those who come after you. The more information you can provide, the better!

## Contributing

Contributions for new translations, fixes, and features are welcome.

This theme would not be nearly as awesome without its amazing community of open source [contributors](https://github.com/victoriadrake/hugo-theme-introduction/graphs/contributors). Thank you so much! ❤

## License

Copyright (C) 2017-2026 [Victoria Drake](https://victoria.dev/)

Licensed under the [Apache License, Version 2.0](https://github.com/victoriadrake/hugo-theme-introduction/blob/master/LICENSE) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
反馈内容错误

看看同类模板

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