Hugo博客

hugo-theme-dooz — Hugo 博客模板

作者 hollson

hugo-theme-dooz 是一个面向程序员与专栏作者的 Hugo 博客主题,仓库采用 MIT 许可,提供示例站点与中文文档。

看看你的网站会是什么样

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

1 个预览视图
作者提供的预览
作者提供的预览首屏预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

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

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

值得关注的模板亮点

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

01

面向程序员与专栏作者的 Hugo 博客主题,仓库附带中文文档入口

02

提供 exampleSite,可复制到站点根目录后直接本地预览

03

文章模板位于 archetypes,front matter 覆盖分类、标签、归档、SEO 关键词与描述等字段

04

配置项包含多语言、菜单、永久链接、taxonomies 与 goldmark 渲染及代码高亮设置

05

params 中可设置作者信息、社交链接、打赏、公告、hero 图与 404 页面内容

模板详细介绍

hugo-theme-dooz 是发布在 GitHub 上的 Hugo 博客主题,作者将其定位为面向程序员或专栏作者的简洁主题。仓库 README 提供了英文说明与中文文档入口,并附带示例站点 http://www.mafool.com 作为参考。

使用方式上,主题通过 git clone 或 git submodule 放入 Hugo 站点的 themes/dooz 目录;仓库内提供 exampleSite,可将其内容复制到站点根目录后运行 hugo server -w 在本地查看示例效果。文章通过 hugo new post/分类-标题.md 创建,archetypes 目录中的模板决定 front matter 字段,README 给出的示例包含 title、url、keywords、description、image、date、categories、tags、archives、author、height、draft 等字段。

配置方面,README 列出了 baseURL、title、theme、languageCode、hasCJKLanguage、enableEmoji、googleAnalytics、paginate、metaDataFormat、languages 多语言块、outputs、params、permalinks、taxonomies、menu.friendly 以及 markup 等设置项。params 中可配置作者、城市、头像、格言、GitHub/CSDN/博客园链接、打赏开关与提示文案、公告、日期格式、hero 图、slogan、404 图片与文案、分享开关以及 SEO 用的 homeTitle、keywords、description。markup 部分基于 goldmark,可开启脚注、定义列表、表格、任务列表等扩展,并配置代码高亮样式、行号与目录层级。

限制与注意事项:仓库资料未说明主题的浏览器兼容范围、无障碍支持或长期维护状态;示例站点与 README 中的第三方链接、图片、字体等素材需按各自许可单独核对,不能仅凭代码的 MIT 许可判断可用性。

Hugo博客

适合你的项目吗?

适用场景

  • 用 Hugo 搭建以技术文章为主的个人博客
  • 需要按分类、标签、归档组织文章并配置 SEO 元信息的站点
  • 希望直接复制 exampleSite 快速查看主题效果的本地预览
  • 需要中英文等多语言配置的博客站点

适合人群

  • 使用 Hugo 并熟悉 TOML 配置的开发者
  • 以技术文章或专栏写作为主的个人博主
  • 需要在主题中配置作者信息、社交链接与打赏入口的站点

上手与定制指南

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

  1. 1

    先安装 Hugo,再执行 hugo new site myblog 创建站点

  2. 2

    在站点目录中通过 git clone 或 git submodule 将主题放入 themes/dooz

  3. 3

    复制 ./themes/dooz/exampleSite/* 到站点根目录,运行 hugo server -w 预览

  4. 4

    在站点配置中设置 theme = "hugo-theme-dooz" 并按 README 示例调整 params、menu 与 markup

  5. 5

    使用 hugo new post/分类-标题.md 创建文章,并按需修改 archetypes 中的模板

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

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

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 75 / 100
技术栈
Hugo
网站类型
博客
这个分数如何计算

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 68630c201bb30a1398612679e2018ad8b5cba01bbf6c038d929067e81da90ba0

2026-10-02T17:14:29.464Z

来源文件 / 仓库

> #### [**Hugo Dooz主题中文文档**](./README-ZH.md)  - 码农的专属博客

<br/>

## Dooz Theme for Hugo

Dooz is a simple and elegant hugo theme specially designed for programmers or columnists.

![screenshot](images/tn.png)


<br/>

## Sample Site
http://www.mafool.com

<br/>


## Installation
When you finish installing the [Hugo](https://gohugo.io/getting-started/installing/),You can create your own blog site:

```shell
$ hugo new site myblog 
$ cd myblog
$ git clone [email protected]:hollson/hugo-theme-dooz.git themes/dooz

# If already in a git project,you can execute the following command
$ git submodule add [email protected]:hollson/hugo-theme-dooz.git themes/dooz
```

<br/>

## Quick Start
You can use the example given for a quick experience:
```shell
$ cp -rp ./themes/dooz/exampleSite/* ./
$ hugo server -w
```
Enter [`http://localhost:1313`](http://localhost:1313) in the browser's address bar,then see an example of the picture above.

For more information check out the official [Hugo documentation](http://gohugo.io/overview/usage/).

<br/>

## Create Posts
```shell
hugo new post/mycategory-my-blog-title.md
```
You can customize your template in the “archetypes” directory ,As follows:
```toml
+++
title= "{{with slicestr .Name (len (index (split .Name "-") 0))}}{{replace . "-" " "|strings.TrimLeft " "|title}}{{end}}"
url= "/post/{{now.Unix}}/"
#aliases = ["/posts/{{md5 now}}/"]
keywords= "keyword1,keyword2"  #SEO keywords
description= "Content description for SEO"
image= "/img/res/blog.jpg"
date= {{ slicestr .Date 0 10 }}
categories= ["{{index (split .Name "-") 0|title}}"]
tags= ["tag1", "tag2"]
archives= "{{ now.Format "2006" }}"
author= "{{.Site.Params.Author}}"
height= {{now.Unix}}
draft= false
+++
```

<br/>

## Configuration
```toml
baseURL = "http://www.mafool.com"
title = "Mafool"
theme = "hugo-theme-dooz"
languageCode = "en"
defaultContentLanguage = "en"
hasCJKLanguage = true
enableEmoji= true
copyright="Copyright Reservation"
googleAnalytics = "G-DKXXXXXX2J"

canonifyurls = true
paginate = 10
metaDataFormat = "toml"

[languages]
  [languages.en]
    # baseURL = "https://hollson.github.io"
    # contentDir = "content/english"
    title = "Mafool"
    languageName = "English"
    copyright="All Rights Reserved"
    weight = 1
    [languages.en.params]
      #author= "shongsheng" #replace the dedault param
      homeTitle="Programmer's Exclusive Blog" 
      slogan="A Hugo theme for programmers."
      title_404="Sorry, page was not found."

[outputs]
home = ["HTML", "RSS", "JSON"]

[params]
  #Author
  author = "Sybs"
  city = "Beijing"
  avatar = "img/my/avatar.png"
  aphorism="Here is my motto"
  github="https://github.com/hollson"
  csdn="https://blog.csdn.net/gusand"
  cnblog="https://www.cnblogs.com/hollson/"

  #Rewords
  reward= true
  rewardTitle="hint"
  rewardPrompt="Words of thanks~"


  #Notice
  notice="**[Dooz theme](https://github.com/hollson/hugo-theme-dooz)** updated, hurry up and experience it! `2020.03.22`"
 
  #Default Site Config of 
  timeOfMonth="2006.01"
  timeOfDay="2006-01-02"
  hero = "img/res/hero.jpg"
  slogan = "A Hugo theme for programmers."
  image_404 = "img/res/404.jpg"
  title_404 = "Sorry, page was not found. :("
  openShare= true

  #SEO Info(meta info)
  homeTitle = "Programmer's Exclusive Blog"
  keywords = "keyword1,keyword2,keyword3"
  description = "Here is description for seo"

[permalinks]
    post = "/:year/:month/:title"

# Classification basis:e.g.:tags、categories、archives...
[taxonomies]
    tag = "tags"
    category = "categories"
    archive = "archives"
    # series = "series"

# nav menu
[[menu.friendly]]
    name="Mafool"
    url="http://www.mafool.com"
    weight="1"
[[menu.friendly]]
    name="Mafool"
    url="http://www.mafool.com"
    weight="2"
[[menu.friendly]]
    name="Mafool"
    url="http://www.mafool.com"
    weight="3"    
[[menu.friendly]]
    name="Mafool"
    url="http://www.mafool.com"
    weight="4"
[[menu.friendly]]
    name="Mafool"
    url="http://www.mafool.com"
    weight="5"

[markup]
  defaultMarkdownHandler = "goldmark"
  [markup.goldmark]
    [markup.goldmark.extensions]
      definitionList = true
      footnote = true
      linkify = true
      strikethrough = true
      table = true
      taskList = true
      typographer = true
    [markup.goldmark.parser]
      attribute = true
      autoHeadingID = true
      autoHeadingIDType = "github"
    [markup.goldmark.renderer]
      hardWraps = true
      unsafe = false
      xHTML = false
  [markup.highlight]      
    codeFences = true     
    guessSyntax = true   
    lineNoStart = 1      
    lineNos = true        #line number
    lineNumbersInTable = true
    style = "monokai"     #code style
    tabWidth = 8
  [markup.tableOfContents]  
    startLevel = 2         #start from:H2
    endLevel = 3           #end from:H3
    ordered = false        
```
**Some important references:**
>  https://gohugo.io/getting-started/configuration-markup#highlight  # Markdown Config

>  https://gohugo.io/content-management/syntax-highlighting/   # High lighting

>  https://xyproto.github.io/splash/docs/longer/all.html  # Code Style


<br/>

## Contributing

Did you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://github.com/hollson/hugo-theme-dooz/issues) to let us know. Or make directly a [pull request](https://github.com/hollson/hugo-theme-dooz/pulls).
反馈内容错误

看看同类模板

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