单页作品集布局,精选与次级项目卡片分层展示
hugo-theme-doors — Hugo 作品集模板
作者 zzzmisa
Doors 是一个基于 Hugo 的单页作品集主题,用卡片形式展示项目与链接,支持多语言、社交链接和 Open Graph 元数据。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
项目卡片支持按组展示,每组带标题和分隔线
内置语言切换器,支持多语言站点与根路径语言选择
通过站点参数配置个人资料、联系文案和有序社交链接
输出 Open Graph 与 Twitter Card 元数据,可选接入 Google Tag Manager
CSS 经 Hugo Pipes 指纹与压缩,间距与文字颜色使用 CSS 自定义属性
模板详细介绍
Doors 是面向 Hugo 的单页主题,主要用途是把个人或团队的作品、项目链接集中展示在一个页面上。页面由站点参数驱动,项目分为精选(projects)与次级(subprojects)两类卡片,两类都支持按组展示,每组带标题和分隔线;不分组时可直接使用列表形式。个人资料、联系文案和社交链接通过 contact 参数配置,社交图标内置 x、twitter、facebook、instagram、linkedin、github、youtube、note、email,其他服务可放置自定义图片并指定站点相对路径。页脚可添加联系、条款、隐私等文字链接。
主题支持多语言站点,提供语言切换器;当 defaultContentLanguageInSubdir 设为 true 时,每种语言有独立 URL,根路径作为语言选择入口,依据浏览器语言跳转,用户手动选择的语言会写入 localStorage 并在之后访问根路径时优先使用,直接访问语言 URL 不会被重定向。元数据方面,主题输出 Open Graph 与 Twitter Card 信息,可配置社交分享图片和 X/Twitter 账号,并可选接入 Google Tag Manager。样式通过 Hugo Pipes 做指纹与压缩处理,间距和文字颜色使用 CSS 自定义属性定义。
使用限制:主题为单页结构,README 未描述多页面内容组织方式;项目与资料内容需在 config.toml 的站点参数中维护,而非独立内容文件。README 说明主题以 Hugo v0.164.0 测试,未提及其他版本兼容性。主题保留 AMP Start 的 The Scenic 模板的视觉设计来源及相关声明,第三方素材需自行核对许可。
适合你的项目吗?
适用场景
- 个人作品集页面,集中列出项目与外部链接
- 团队或工作室展示精选项目与次级项目
- 需要中英日等多语言入口的个人站点
- 希望用站点参数而非内容文件维护项目列表的 Hugo 站点
适合人群
- 使用 Hugo 搭建个人作品集或链接聚合页的开发者
- 需要多语言作品集页面并带语言切换的站点
- 希望用卡片分组展示项目、且配置集中在 config.toml 的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
主题以 Hugo v0.164.0 测试,使用前请确认本地 Hugo 版本
- 2
从仓库根目录运行 hugo server --source exampleSite --themesDir ../.. 可预览示例站点
- 3
新建站点后将主题克隆到 themes 目录,并复制 exampleSite/config.toml 作为配置起点
- 4
项目、资料、页脚链接和元数据均在站点参数中配置,多语言站点需写在对应 languages.<language>.params 下
- 5
社交图标除内置名称外,可将图片放入 static 目录并用站点相对路径指定 icon
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 主题保留 AMP Start 的 The Scenic 模板的视觉设计来源,并须保留相关第三方声明;这些声明位于 baseof.html、social-icon.html 和 newspaper.svg 中,使用或修改时不得移除。
- Google Tag Manager 为可选集成,需自行提供容器 ID;启用后页面会加载 Google 的外部脚本,可能涉及第三方服务条款与数据收集。
- 主题仅在 Hugo v0.164.0 下测试,README 未声明其他版本兼容性,使用其他 Hugo 版本可能出现不兼容。
- 向项目提交贡献(如 pull request)即表示同意以 MIT 许可证授权该贡献。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Doors retains the visual design lineage and required notices from AMP Start's The Scenic template.
README 原文
Optional Google Tag Manager integration
README 原文
Doors is tested with Hugo `v0.164.0`.
README 原文
https://github.com/zzzmisa/hugo-theme-doors/blob/master/LICENSEhttps://github.com/zzzmisa/hugo-theme-doors/blob/master/README.mdBy submitting a pull request, you agree to license your contribution under the MIT License.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- Hugo Themes
- 资料与维护参考分
- 资料较完整 · 87 / 100
- 技术栈
- Hugo
- 网站类型
- 作品集
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-08-23
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-04
查看当时使用的来源资料
SHA-256: b22840c06dae7daf4841190528f8cf7219305880a49c0a6198c10fcc8b2b30f0
2026-10-03T21:43:59.287Z
来源文件 / 仓库# Hugo Theme Doors Doors is a responsive, single-page Hugo theme for showcasing projects and links. See it in use at [zzzmisa.com](https://zzzmisa.com/).  ## Features - Featured and secondary project cards - Responsive desktop and mobile layouts - Multilingual sites with a language switcher - Contact profile and social links - Open Graph and Twitter Card metadata - Optional Google Tag Manager integration - Fingerprinted and minified CSS through Hugo Pipes ## Requirements Doors is tested with Hugo `v0.164.0`. ## Run the example site From the theme repository root, run: ```sh hugo server --source exampleSite --themesDir ../.. ``` Then open <http://localhost:1313/>. To build the example into a temporary output directory: ```sh ./scripts/verify.sh ``` The verification script builds both configured languages and checks the generated metadata, language switcher, project content, Google Tag Manager markup, CSS asset, and absence of AMP markup. ## Use the theme Create a Hugo site, then clone Doors into its `themes` directory: ```sh hugo new site my-site cd my-site git clone https://github.com/zzzmisa/hugo-theme-doors.git themes/hugo-theme-doors cp themes/hugo-theme-doors/exampleSite/config.toml config.toml hugo server ``` Project and profile content is configured through site parameters: - `params.description`: site description shown on the page; use a string for one line or an array of strings for multiple lines - `params.projects.list`: featured project cards - `params.projects.groups`: grouped featured project cards - `params.subprojects.list`: secondary project cards - `params.subprojects.groups`: grouped secondary project cards - `params.contact`: profile, contact text, and ordered social links - `params.contact.position`: set to `"top"` to place the profile directly below the title and language selector; omit it to keep the profile in the footer - `params.footer.links`: ordered text links shown above the copyright notice, such as contact, terms, and privacy pages Site integrations and metadata are configured separately: - `params.googleTagManager`: optional Google Tag Manager container ID - `params.metadata.description`: plain-text site description used in HTML, Open Graph, and X/Twitter metadata - `params.metadata.ogImage`: social sharing image and Apple touch icon - `params.metadata.twitterSite`: optional X/Twitter account Secondary project groups are defined with `params.subprojects.groups`. Each group has a `title` and `list` and is displayed with a labeled divider. Keep using `params.subprojects.list` when grouping is not needed. Featured project groups use the same structure and divider design. Define them with `params.projects.groups`, or keep using `params.projects.list` when grouping is not needed. Social links are defined with `params.contact.links`. Built-in icon names are `x`, `twitter`, `facebook`, `instagram`, `linkedin`, `github`, `youtube`, `note`, and `email`. For other services, place an image below the site's `static` directory and set `icon` to its site-relative path. See [`exampleSite/config.toml`](exampleSite/config.toml) for built-in and custom icon examples. The legacy social fields below `params.contact` remain supported when `params.contact.links` is not defined. Footer links are defined with `params.footer.links`. Each link has a `label` and `url`, and opens in the current tab. Omit the list to keep the footer unchanged. See [`exampleSite/config.toml`](exampleSite/config.toml) for multilingual contact, terms, and privacy link examples. Layout spacing uses the CSS custom properties `--space-2xs` through `--space-3xl` in [`assets/css/main.css`](assets/css/main.css). The scale is based on 4, 8, 16, 24, 32, 40, 48, and 80 pixel steps so component spacing shares a consistent rhythm. Text colors follow The Scenic's palette through semantic CSS custom properties: `--color-text-primary` for body copy, `--color-text-emphasis` for prominent labels and headings, and `--color-text-secondary` for captions and supporting navigation text. For multilingual sites, define these parameters below each `languages.<language>.params` table, as shown in [`exampleSite/config.toml`](exampleSite/config.toml). Set `defaultContentLanguageInSubdir` to `true` to give every language a stable URL such as `/en/` and `/ja/`. Doors then uses the root URL as a language selection entry point, choosing from the visitor's browser language. A language selected from the language switcher is stored in `localStorage` and takes precedence on later root URL visits. Direct visits to language URLs are never redirected. Metadata shared by every language can be defined below `params.metadata`. Language-specific metadata can be defined below `languages.<language>.params.metadata`; Hugo merges it with the shared metadata. The legacy `params.ogimage`, `params.twitterSite`, and plain-text `params.description` metadata fields remain supported as fallbacks. ## Contributing Bug reports and pull requests are welcome. By submitting a pull request, you agree to license your contribution under the MIT License. ## Attribution notices Doors retains the visual design lineage and required notices from AMP Start's The Scenic template. Third-party notices are kept next to the relevant implementation in [`layouts/_default/baseof.html`](layouts/_default/baseof.html), [`layouts/partials/social-icon.html`](layouts/partials/social-icon.html), and [`exampleSite/static/images/icons/newspaper.svg`](exampleSite/static/images/icons/newspaper.svg).
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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

Congo
Congo 是一款为 Hugo 设计的现代内容主题,核心定位是让内容本身成为页面焦点。 它基于 Tailwind CSS 3.0 构建,整体布局完全响应式,视觉风格干净且克制,没有多余装饰。
Hugo · 博客

toha
Toha 是一款面向个人作品集场景的 Hugo 主题,以极简设计和响应式布局为核心,适合用来搭建个人主页、作品展示或技术博客。
Hugo · 作品集

hugo-profile
A highly customizable and mobile first Hugo template for personal portfolio and blog.
Hugo · 作品集

hugo-theme-introduction
Minimal, single page, smooth-scrolling theme for Hugo static site generator.
Hugo · 作品集

hugo-theme-console
hugo-theme-console 是一款以系统终端为灵感的极简 Hugo 主题,基于 Terminal CSS 构建,整体视觉干净利落,强调快速加载与响应式布局。
Hugo · 作品集
