Hugo作品集博客

lekh — Hugo 作品集模板

作者 ba11b0y

lekh 是一个基于 Hugo 的极简个人作品集主题,以文字内容为主,提供深色模式、社交链接、RSS 与 GoatCounter 统计。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

以文字为核心的极简作品集与博客布局

02

内置深色模式,取自 gwern.net

03

通过 config.toml 的 params 配置姓名、简介、邮箱与简历文件名

04

支持多个社交档案链接,可在配置中逐条添加

05

内置 RSS 输出,并可通过 GoatCounterCode 接入 GoatCounter 统计

06

内容使用 Markdown 撰写,首页文章数量由 PostLimit 控制

模板详细介绍

lekh 是一个面向个人作品集与博客的 Hugo 主题,强调文字内容与极简排版,代码基于 Vegard 的个人站点改造,深色模式取自 gwern.net。主题通过 config.toml 中的 params 配置姓名、简介、邮箱、简历文件名、首页文章显示数量以及多个社交档案链接(如 GitHub、Twitter、Goodreads、LinkedIn)。内容以 Markdown 撰写,可用 hugo new posts/... 生成文章,首页文章数量由 PostLimit 控制。内置 RSS 输出,并支持填入 GoatCounterCode 接入 GoatCounter 访问统计。主题仓库采用 MIT 许可,可免费使用、修改与分发,但演示图片、字体、图标等第三方素材需单独核对许可;GoatCounter 等外部服务也可能另有收费条件。仓库最近更新于 2023 年,README 未说明更多功能或维护状态。

Hugo作品集博客

适合你的项目吗?

适用场景

  • 搭建以文字介绍为主的个人作品集页面
  • 维护一个轻量的个人博客并输出 RSS
  • 需要深色阅读模式与基础访问统计的个人站点
  • 希望用 Hugo 与 Markdown 管理内容、并通过配置文件集中调整站点信息

适合人群

  • 偏好极简文字排版、不需要复杂视觉组件的个人站点作者
  • 使用 Hugo 并熟悉 config.toml 配置的开发者
  • 需要作品集与博客合一、且希望接入 GoatCounter 统计的用户

上手与定制指南

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

  1. 1

    先安装 Hugo,再执行 hugo new site <site_name> 创建站点

  2. 2

    在站点目录中通过 git submodule 将 lekh 加入 themes/lekh,并在 config.toml 中设置 theme = "lekh"

  3. 3

    复制 themes/lekh/exampleSite/config.toml 到站点根目录,按需修改 params 中的个人信息与社交链接

  4. 4

    用 hugo new posts/title-of-post.md 创建文章,hugo server -D 可预览草稿,hugo server 仅显示已发布内容

  5. 5

    GoatCounterCode 留空时不启用统计;如需统计需自行注册 GoatCounter 并填入对应代码

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • GoatCounter 为外部统计服务,需自行注册并获取代码填入 GoatCounterCode;该服务可能另有收费或使用条件,主题本身不提供统计后端。
  • 深色模式样式直接取自 gwern.net,该部分素材的许可需单独核对,不随主题的 MIT 许可一并授予。
  • 主题基于 Vegard 的个人站点改造,若沿用其原始素材或代码,需自行确认上游许可与署名要求。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

GoatCounter counts(analytics). Know more about GoatCounter [here](https://goatcounter.com)

README 原文

Dark mode (taken from https://www.gwern.net/ as it is.)

README 原文

Simple, text-focussed and minimal personal portfolio theme based on https://github.com/vegarsti/vegarsti.github.io

README 原文
https://github.com/ba11b0y/lekh/blob/master/LICENSE.mdhttps://github.com/ba11b0y/lekh/blob/master/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2023-05-06
截图检查日期
2026-10-01

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 78bad74bf6e810ccd37d73525851b1f0748ce63414bf1099aef0548373aea852

2026-10-01T00:52:57.269Z

来源文件 / 仓库
# Lekh
Simple, text-focussed and minimal personal portfolio theme based on https://github.com/vegarsti/vegarsti.github.io

## Screenshot ([Live Demo](https://agitated-yonath-d9c445.netlify.com/))
![Screenshot](https://raw.githubusercontent.com/invinciblycool/lekh/master/images/screenshot.png)

## Features
* Social media links
* Markdown supported
* Easy to personalize
* RSS feed
* Dark mode (taken from https://www.gwern.net/ as it is.)
* GoatCounter counts(analytics). Know more about GoatCounter [here](https://goatcounter.com)


## Installation

### Installing Hugo

```sh
# For Linux
sudo apt-get install hugo

# For Mac
brew install hugo

# Detailed instructions at https://gohugo.io/getting-started/installing#readout
```

### Creating a new site

```sh
hugo new site <site_name>
```

### Adding lekh as a theme

```sh
cd <site_name>
git init
git submodule add https://github.com/ba11b0y/lekh.git themes/lekh
echo theme = \"lekh\" >> config.toml

```

Here's Hugo's [official guide](https://gohugo.io/getting-started/quick-start/) for more details.


## Personalization

Hugo looks for a `config.toml` in the root of your site.
To personalize the theme, copy the default config shipped with the theme

`cp themes/lekh/exampleSite/config.toml config.toml`

And then customize accordingly.

Or simply copy the below config and customize accordingly.

```toml

baseURL = "https://example.com/"
languageCode = "en-us"
title = "Example Lekh Site"
theme = "lekh"

[params]
Name = "Agent Smith"
About = "We're not here because we're free. We're here because we're __not__ free. There's no escaping reason. No denying purpose. Because as we both know without purpose, we would not exist.<br/> Read more [here](https://matrix.fandom.com/wiki/Agent_Smith)"
Email = "[email protected]"
Resume = "" # Add the filename with file extension.
PostLimit = 4 # Sets the number of posts to display on the front page
GoatCounterCode = ""

[[params.profiles]]
name = "GitHub"
url = "https://github.com/ba11b0y"

[[params.profiles]]
name = "Twitter"
url = "https://twitter.com/ba11b0y"

[[params.profiles]]
name = "Goodreads"
url = "https://www.goodreads.com/user/show/91520565-rahul-tiwari"

[[params.profiles]]
name = "LinkedIn"
url = ""

```

## Creating posts

```sh
# This creates a new draft post in content/posts
hugo new posts/title-of-post.md
```

## Serving it up

```sh
# This will show up your draft posts as well.
hugo server -D
#OR

#This will show up only your published posts.
hugo server
```

## Credits

* Thanks to [Vegard's](https://github.com/vegarsti) personal site from which the theme was heavily inspired.
* Also to https://www.gwern.net/ for the dark mode.

Feel free to contribute and open issues.
反馈内容错误

看看同类模板

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