Hugo作品集博客

ink-free — Hugo 作品集模板

作者 chollinger93

ink-free 是一个基于 Hugo 的极简个人网站与博客主题,从 hugo-ink 分叉而来,移除了 Google 字体 CDN 与第三方分析代码,改为本地资源与自托管统计方案。

看看你的网站会是什么样

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

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

来自项目 README 的原始预览。

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

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

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

值得关注的模板亮点

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

01

移除 Google 字体 CDN 与第三方分析代码,改为本地资源与自托管 Umami 统计

02

支持可配置目录,可在顶部静态显示、侧边浮动或同时呈现

03

文章概览展示字数、标签与预估阅读时间,并提供返回按钮

04

内置 inlineimg 短代码与图片标题语法,支持内联渲染 SVG 等图片

05

可选 Mermaid 图表支持,默认通过 CDN 加载并可通过 mermaidCDN 调整

06

提供随机页脚消息与"在 GitHub 上编辑"按钮

模板详细介绍

ink-free 是一个面向个人网站与博客的 Hugo 主题,定位为简洁、注重隐私的写作与作品展示载体。它从 knadh 的 hugo-ink 分叉而来,而 hugo-ink 又源自 Ezhil 主题,因此保留了极简排版风格,同时针对隐私做了本地化调整。

与上游 hugo-ink 相比,ink-free 移除了对 Google 字体 CDN 的引用,并删除了原有分析代码,改为支持自托管的 Umami 统计。功能上增加了文章返回按钮、可配置的目录(支持顶部静态、侧边浮动或两者兼有)、概览中的字数、标签与预估阅读时间、随机页脚消息、"在 GitHub 上编辑"按钮、用于内联渲染图片(如 SVG)的 inlineimg 短代码、图片标题的 Markdown 语法支持,以及可选的 Mermaid 图表(默认通过 CDN 加载,可通过 mermaidCDN 配置)。同时修正了标签排列、语法高亮背景色等样式问题。

主题要求 Hugo 0.87.0 或更高版本,安装方式为在 Hugo 站点的 themes 目录下添加 Git 子模块。内容可通过 front matter 中的 type 字段区分页面类型,静态页面可设为 page 以从最近文章和全部文章列表中排除。多语言月份名称需要通过站点 data 目录下的 month.yaml 手动定义。主题采用 MIT 许可,示例站点位于 exampleSite 目录,可运行 hugo serve --themesDir ../.. 查看。

Hugo作品集博客

适合你的项目吗?

适用场景

  • 搭建注重隐私、不依赖外部字体与分析服务的个人博客
  • 创建包含静态页面与文章列表的个人作品集网站
  • 为技术文章添加目录、语法高亮、字数与阅读时间等阅读辅助信息
  • 在文章中以短代码内联展示 SVG 或带标题的图片
  • 使用自托管 Umami 统计访问数据,替代第三方分析工具

适合人群

  • 使用 Hugo 构建个人网站或博客的开发者与写作者
  • 对第三方 CDN 与外部分析服务有隐私顾虑的用户
  • 需要目录、阅读时间、标签等文章元信息的博客作者
  • 希望以 MIT 许可自由修改和分发主题代码的用户

上手与定制指南

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

  1. 1

    需要 Hugo 0.87.0 或更高版本。

  2. 2

    在 Hugo 站点的 themes 目录下通过 git submodule add 添加主题仓库。

  3. 3

    示例站点位于 exampleSite,可在该目录运行 hugo serve --themesDir ../.. 预览。

  4. 4

    多语言月份名称需在站点 data 目录下创建 month.yaml,示例文件见 exampleSite/data/。

  5. 5

    Mermaid 默认通过 CDN 加载,可通过 mermaidCDN 配置调整;Feather CDN 可启用也可静态托管。

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • Mermaid 图表默认通过外部 CDN 加载,需联网访问第三方服务;可通过 mermaidCDN 配置改为其他地址或自托管。
  • Feather 图标资源可选择启用外部 CDN,也可自行静态托管;若启用 CDN 则依赖第三方服务。
  • 访问统计需自行部署或使用 Umami 服务,属于外部服务依赖,非主题内置功能。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

loads via CDN by default, can be set via `mermaidCDN`

README 原文

Note that the Feather CDN can still be enabled, but you can also host it statically.

README 原文

This theme currently supports [umami](https://github.com/umami-software/umami) for a privacy focused alternative.

README 原文
https://github.com/chollinger93/ink-free/blob/master/LICENSE.mdhttps://github.com/chollinger93/ink-free/blob/master/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: eb45674b429a0b7b77eab68ab9ff33e6a39564b114ad119582cd3c4df07080b2

2026-10-02T10:11:55.097Z

来源文件 / 仓库
# Ink-Free

[!["Example"](https://img.shields.io/static/v1?label=Example&message=chollinger.com&color=green&logo=hugo)](https://chollinger.com/blog)
[![Minimum Hugo Version](https://img.shields.io/static/v1?label=HUGO-version&message=>=0.87.0&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.87.0)
[![ink-free](https://img.shields.io/static/v1?label=ink-free&message=Theme&color=blue&logo=hugo)](ttps://themes.gohugo.io/themes/ink-free/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Crisp, minimal personal website and blog theme Hugo, designed for a collaborative, open-source, privacy conscious blog.

Forked from [knadh](https://github.com/knadh/hugo-ink) with custom adjustments. Originally forked from [Ezhil](https://github.com/vividvilla/ezhil).


## Ink-Free vs Hugo-Ink
This repository is a purely local (i.e., no CDNs[^1]), simplified version of `hugo-ink` with several **simplifications** for the sake of privacy:
- Removed all references to Google's font-CDN
- Removed Analytics code, replaced with self-hosted options[^2]

As well as some additional **features**:
- Added a Back button to all posts
- Added a Table of Contents (TOC), controlled by a variable, to all posts
  - The TOC can either be static at the top
  - Or floating on the side

- Added a word count, tags, and an approximate read time to the overview
- Added random footer messages
- Added "Edit this on GitHub" button
- Added `inlineimg` shortcode to render images (e.g. SVGs) in-line
- Added support for `![](image title="title")` syntax for image titles
- Random, somewhat humorous messages at the end of each post
- Added support for [mermaid](https://mermaid.js.org/) diagrams (*loads via CDN by default, can be set via `mermaidCDN`*)

And some **bugfixes**:
- Modified the CSS to
  - Order all tags inline, as opposed to as a list
  - Change the background color for Syntax Highlighting, otherwise we're looking at grey code on a grey background
  - Added some classes for a Back button

## Demo

### Overview

![Screenshot](images/screenshot.png "Ink-Free theme")

![image-20230620151830930](images/screenshot2.png)

![Dark Mode](images/dark_mode.png "Dark mode")

### Table Of Contents Options

#### Floating

![image-20230620114414684](images/floating_toc.png)

#### Static

![image-20230620151300448](images/static_toc.png)

#### Both

![image-20230620151006141](images/both_toc.png)

#### Truncated

![image-20230620151110164](images/truncated_toc.png)

#### Mobile

![image-20230620151645609](images/mobile_toc.png)

### Run the example
```
cd exampleSite
hugo serve  --themesDir ../..
```

## Features
* Syntax highlighting
* RSS feeds
* Custom CSS/JS
* Multilingual months support
* Custom TOC
* In-Line images w/ Titles
* Random footer messages
* "Edit this on GitHub" button
* Word count, tags, and an approximate read time in the overview
* [Umami](https://github.com/umami-software/umami) support

## Installation

cd into your hugo site's root directory and:

```sh
cd themes
git submodule add https://github.com/chollinger93/ink-free
```

For more information read the [official setup guide](https://gohugo.io/overview/installing/) of Hugo.


## Content type

You can specify content type with field `type` in your content. For example static pages can be set as type `page` which are excluded from recent posts and all posts page. You can use site params `mainSections` and `disableDisqusTypes` to control which page types are excluded from recent posts and Disqus comments respectively.

```md
---
title: "About"
date: 2019-04-19T21:37:58+05:30
type: "page"
---

This is some static page where you can write about yourself.
```

## Language Settings for the month

Due to the currently unavailable feature for multilingual dates in ``.Date`` from
Go. It is possible to create a ``month.yaml`` in the data folder of your
Hugo site root directoy. There is also an example file in
``exampleSite/data/``.

```sh
cat > month.yaml << EOF
1: "Jan"
2: "Feb"
3: "Mar"
4: "Apr"
5: "May"
6: "Jun"
7: "Jul"
8: "Aug"
9: "Sep"
10: "Oct"
11: "Nov"
12: "Dec"
EOF
```

## Credits

* [knadh](https://github.com/knadh/hugo-ink), who created hugo-ink
* [Ezhil theme](https://github.com/vividvilla/ezhil) from which Ink was forked


## License
Licensed under the MIT license.

[^1]: Note that the Feather CDN can still be enabled, but you can also host it statically.
[^2]: This theme currently supports [umami](https://github.com/umami-software/umami) for a privacy focused alternative.
反馈内容错误

看看同类模板

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