Hugo工具站

hugo-theme-nix — Hugo 工具站模板

作者 lordmathis

Nix 是一个面向 Hugo 的极简主题,以终端提示符风格的导航栏和纯文本配置为特色,适合搭建个人站点、博客与作品集。

看看你的网站会是什么样

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

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

来自项目 README 的原始预览。

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

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

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

值得关注的模板亮点

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

01

导航栏以 `HeaderUsername@HeaderHostname ~ $` 的终端提示符形式呈现

02

通过 config.toml 的 [params] 配置站点信息与大量社交网络、联系方式字段

03

支持 [[menu.header]] 菜单项及 parent 子菜单

04

可配置 disqusShortname 启用 Disqus,单页用 nocomments = true 关闭

05

单页可用 showpostdate = false 隐藏日期,并支持 lastmod 或 enableGitInfo

06

MIT 许可,允许免费使用、修改、商用和分发

模板详细介绍

Nix 是 lordmathis 维护的 Hugo 主题,定位为简单、极简。它通过 config.toml 中的 [params] 配置站点信息,其中 Name、HeaderUsername、HeaderHostname、About、ProfilePicture 用于生成导航栏左侧的 `HeaderUsername@HeaderHostname ~ $` 提示符样式头部。主题支持在 [params] 中填写多种社交网络与联系方式字段,包括 Bitbucket、Bluesky、Codepen、CvURL、Email、Facebook、Github、Gitlab、GnuPGFingerprint、GoogleAnalytics、Googleplus、Instagram、LinkedIn、MastodonURL、Medium、Mobile、PayPalMe、Phone、Reddit、RSSURL、SlackURL、Spotify、Soundcloud、StackExchange、StackOverflow、Telegram、Twitter、Twitch、Xing、Youtube 等。导航菜单通过 [[menu.header]] 定义,并可用 parent 字段创建子菜单。评论方面,配置 disqusShortname 后启用 Disqus,单页可在 front matter 中设置 nocomments = true 关闭;单页可用 showpostdate = false 隐藏发布日期;页面支持 lastmod,需在 front matter 中填写,或在站点配置中开启 enableGitInfo 后由 Git 提交日期提供。

使用方式为将仓库克隆到 Hugo 主题目录:先创建 themes 目录,再执行 git clone https://github.com/LordMathis/hugo-theme-nix。主题以 MIT 许可发布,允许免费使用、修改、商用和分发该版本代码,分发时需保留版权声明与完整 MIT 许可声明;代码按现状提供。演示图片、字体、图标等第三方素材需按各自许可核对,域名、托管等外部服务可能另行收费。

Hugo工具站

适合你的项目吗?

适用场景

  • 搭建以文字为主的个人博客
  • 制作带社交链接与联系方式的个人主页或作品集
  • 需要终端风格导航栏的极简站点
  • 使用 Hugo 并希望用 config.toml 集中管理站点参数的项目

适合人群

  • 熟悉 Hugo 与 TOML 配置的开发者
  • 偏好极简、终端风格界面的个人站点作者
  • 需要快速接入 Disqus 评论与多社交平台的博客
  • 接受 MIT 许可条款并自行核对第三方素材授权的使用者

上手与定制指南

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

  1. 1

    在 Hugo 项目根目录创建 themes 目录,并执行 git clone https://github.com/LordMathis/hugo-theme-nix 将主题放入其中

  2. 2

    在 config.toml 的 [params] 中填写 Name、HeaderUsername、HeaderHostname、About、ProfilePicture 等基础参数

  3. 3

    按需在 [params] 中添加社交网络与联系方式字段,如 GithubID、Email、MastodonURL、RSSURL 等

  4. 4

    使用 [[menu.header]] 定义导航项,需要子菜单时用 parent 字段关联

  5. 5

    如需评论,在 config.toml 中设置 disqusShortname;单页可用 nocomments = true 关闭

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • GnuPGFingerprint 功能依赖外部服务 keys.openpgp.org 查询指纹,使用该字段需联网访问该第三方密钥服务器。
  • 评论功能需配置 disqusShortname 并依赖第三方 Disqus 服务,可能涉及注册账号及该服务自身的条款与费用。
  • 启用 Google Analytics 需填写自有跟踪 ID,属于外部第三方服务,可能涉及账号与合规义务。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Uses keys.openpgp.org keyserver to search your fingerprint

README 原文

To enable disqus comments add `disqusShortname` to your `config.toml`.

README 原文

GoogleAnalytics = "your_google_analytics_id"

README 原文
https://github.com/lordmathis/hugo-theme-nix/blob/master/LICENSE.mdhttps://github.com/lordmathis/hugo-theme-nix/blob/master/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
Hugo Themes
资料与维护参考分
资料一般 · 73 / 100
技术栈
Hugo
网站类型
工具站
这个分数如何计算

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

这个项目需要核对什么

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

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: d1b879b33724d6cbf82b54aec0236b5b3472424f04962c6f4c5ecf943a754bc2

2026-10-02T22:21:21.911Z

来源文件 / 仓库
# Nix

Nix is a simple, minimal theme for Hugo

![Hugo Theme Nix](https://raw.githubusercontent.com/LordMathis/hugo-theme-nix/master/images/screenshot.png)

## Usage

Clone the repository to your hugo theme directory

```
mkdir themes
cd themes
git clone https://github.com/LordMathis/hugo-theme-nix
```

## Configuration

Add these parameters to your `config.toml`:

```
[params]
  Name = "your_name"
  HeaderUsername = "username"
  HeaderHostname = "hostname"
  About = "info_about_you"
  ProfilePicture = "profile_picture_url"
```

`HeaderUsername` and `HeaderHostname` will be displayed in navbar on left side in the format: `HeaderUsername@HeaderHostname ~ $`.  

Optionaly you can add any of these social networks to the \[params\] section.

```
  BitbucketID = "your_bitbucket_id"
  BlueskyID = "your_bluesky_id"
  CodepenID = "your_codepen"
  CvURL = "your_cv_url"
  Email = "your_email"
  FacebookID = "your_facebook"
  GithubID = "your_github"
  GitlabId = "your_gitlab"
  # Uses keys.openpgp.org keyserver to search your fingerprint
  # https://keys.openpgp.org/search?q=your_gpg_fingerprint
  GnuPGFingerprint = "your_gpg_fingerprint"
  GoogleAnalytics = "your_google_analytics_id"
  GoogleplusID = "your_googleplus"
  InstagramID = "your_instagram"
  LinkedInID = "your_linkedin"
  MastodonURL = "your_mastodon_profile"
  MediumID = "your_medium_id"
  Mobile = "+1-201-555-0123"
  PayPalMeID = "https://www.paypal.me/..."
  Phone = "+1-201-555-0123"
  RedditID = "your_reddit"
  RSSURL = "\path-to-xml" ( default hugo generates from pages at "/index.xml" )
  SlackURL = "https://join.slack.com/..."
  SpotifyID = "your_spotify_id"
  SoundcloudID = "your_soundcloud_id"
  StackExchangeID = "your_stackexchange_id"
  StackOverflowID = "your_stackoverflow_id"
  TelegramID = "your_telegram"
  TwitterID = "your_twitter"
  TwitchID = "your_twitch_username"
  XingURL = "https://www.xing.com/profile/..."
  # For youtube, since there are multiple path urls please add everything after https://youtube.com/ in channel url
  YoutubeID = "c/your_youtube_id"
```

To add a menu item add `[[menu.header]]` item to `config.toml`. For example:

```
[menu]
  [[menu.header]]
    name = "posts"
    weight = 0
    url = "/posts"
```

To add a submenu item add `[[menu.header]]` item with a parent parameter to `config.toml`. For example:

```
[menu]
  [[menu.header]]
    identifier = "post"
    name = "posts"
    weight = 0
  [[menu.header]]
    parent = "post"
    name = "All Posts"
    url = "/posts"
  [[menu.header]]
    parent = "post"
    name = "categories"
    url = "/categories"
  [[menu.header]]
    parent = "post"
    name = "tags"
    url = "/tags"
```

To enable disqus comments add `disqusShortname` to your `config.toml`.

You can turn off disqus comments per page by adding `nocomments = true` to the front matter.

To disable the post date from a specific page add `showpostdate = false` to your relevant `.md` file.

Pages now also support ![Lastmod](https://gohugo.io/methods/page/lastmod/). This will not appear until you populate `lastmod:` in the page's frontmatter, unless you have `enableGitInfo` set to `true` in your site's config file, in which case it will use the date of the last git commit containing that page.

## License

Nix is licensed under the [MIT License](LICENSE.md)
反馈内容错误

看看同类模板

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