Hugo博客

linewise — Hugo 博客模板

作者 tabsp

Linewise 是一个以 Vim 交互模型为灵感的 Hugo 个人博客主题,提供命令面板、搜索面板、bufferline、文件浏览器与状态栏等界面元素,并支持客户端搜索与 giscus 评论。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

以 Vim 交互模型设计界面,包含命令面板、搜索面板、bufferline、文件浏览器与状态栏

02

支持客户端搜索,数据由 /search.json 提供

03

内置标签、文章列表、RSS、sitemap、canonical URL 与 Open Graph 元数据

04

可通过 giscus 接入基于 GitHub Discussions 的评论,默认关闭

05

提供列表导航与阅读的键盘操作,移动端有文件浏览器抽屉和可横向滚动的 buffer 标签

06

支持 git submodule 或 Hugo Module 两种安装方式

模板详细介绍

Linewise 是托管在 GitHub 上的 Hugo 主题,面向个人博客。它把文章当作 buffer 来组织,搜索交互借鉴 Vim 的 quickfix,界面整体采用 Vim 的交互模型,同时保留阅读舒适度。主题可安装为 git submodule 或 Hugo Module,文章以 Markdown 形式放在 content/posts/ 目录,支持标签、文章列表、RSS、sitemap、canonical URL 与 Open Graph 元数据。搜索为客户端实现,数据来自 /search.json;评论使用基于 GitHub Discussions 的 giscus,默认关闭。界面包含 Vim 风格的命令面板、搜索面板、bufferline、文件浏览器和状态栏,并提供用于列表导航与阅读的键盘操作;移动端提供文件浏览器抽屉和可横向滚动的 buffer 标签。

使用前需注意:主题要求 Hugo Extended 0.146.0 或更新版本;若通过 Hugo Modules 安装则需要 Go;Node.js 与 pnpm 仅用于主题自身的开发和 Playwright 测试。安装方式二选一,不要同时配置 theme = "linewise" 和 Linewise 模块导入。主题以 MIT 许可发布,可免费使用、修改、商用和分发,但分发代码副本或实质性部分时需保留原作者版权声明和完整 MIT 许可声明;演示图片、字体、图标等第三方素材需按各自许可单独核对,域名、托管等外部服务可能另外收费。

Hugo博客

适合你的项目吗?

适用场景

  • 搭建以 Markdown 文章为主的个人博客
  • 希望博客界面带有 Vim 风格交互与键盘操作习惯的站点
  • 需要客户端搜索、标签、RSS 与 Open Graph 元数据的静态博客
  • 使用 giscus 与 GitHub Discussions 承载评论的站点
  • 在移动端也需要文件浏览与文章切换体验的博客

适合人群

  • 熟悉 Hugo 并希望快速套用主题的个人博主
  • 习惯 Vim 操作、偏好键盘导航的写作者
  • 需要 MIT 许可下可修改和分发主题代码的开发者
  • 使用 GitHub Discussions 管理评论的站点维护者

上手与定制指南

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

  1. 1

    需要 Hugo Extended 0.146.0 或更新版本;使用 Hugo Modules 安装时还需要 Go

  2. 2

    安装方式二选一:git submodule 或 Hugo Module,不要同时配置 theme = "linewise" 和 Linewise 模块导入

  3. 3

    在站点配置中加入 Linewise 默认参数,包括 taxonomies、params.linewise、comments、outputs 与 JSON 输出格式等

  4. 4

    文章写在 content/posts/ 目录,使用 Markdown 与 front matter

  5. 5

    Node.js 与 pnpm 仅用于主题开发和 Playwright 测试,不是使用主题的必需条件

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 评论功能依赖 giscus 与 GitHub Discussions 外部服务,需在 GitHub 仓库启用 Discussions 并配置 giscus,默认关闭(provider = "none")。
  • 若选择 Hugo Module 方式安装主题,需要本地安装 Go 工具链;使用 git submodule 方式则不需要。
  • Node.js 与 pnpm 仅用于主题自身开发与 Playwright 测试,普通使用主题建站不需要。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

giscus comments powered by GitHub Discussions

README 原文

Go, if installing with Hugo Modules

README 原文

Node.js and pnpm only for Linewise theme development and Playwright tests

README 原文
https://github.com/tabsp/linewise/blob/main/LICENSEhttps://github.com/tabsp/linewise/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 9e735183e64ce4fb2880531f0a5338bc419ce4c27568617882c393aab587ce1a

2026-10-02T21:09:24.886Z

来源文件 / 仓库
# Linewise

[![Hugo](https://img.shields.io/badge/Hugo-0.146%2B-FF4088?logo=hugo&logoColor=white)](https://gohugo.io)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

![Linewise Screenshot](images/screenshot.png)

Linewise is a Vim-inspired Hugo theme for personal blogs. Posts behave like buffers, search borrows from quickfix, and the interface uses Vim as an interaction model without sacrificing reading comfort.

**Demo and docs:** [linewise.tabsp.com](https://linewise.tabsp.com)

## Features

- Hugo theme installable as a git submodule or Hugo Module
- Markdown posts in `content/posts/`
- Tags, posts list, RSS, sitemap, canonical URLs, and Open Graph metadata
- Client-side search backed by `/search.json`
- giscus comments powered by GitHub Discussions
- Vim-like command palette, search palette, bufferline, file explorer, and statusline
- Keyboard motions for list navigation and reading
- Mobile file explorer drawer and horizontally scrollable buffer tabs

## Requirements

- Hugo Extended `0.146.0` or newer
- Go, if installing with Hugo Modules
- Node.js and pnpm only for Linewise theme development and Playwright tests

## Installation

Create a Hugo site:

```sh
hugo new site my-blog
cd my-blog
```

Then choose one installation mode.

### Git Submodule

```sh
git submodule add https://github.com/tabsp/linewise themes/linewise
```

```toml
baseURL = "https://example.com"
title = "My Blog"
locale = "en"
theme = "linewise"
```

### Hugo Module

```sh
hugo mod init github.com/you/my-blog
```

```toml
baseURL = "https://example.com"
title = "My Blog"
locale = "en"

[module]
[[module.imports]]
path = "github.com/tabsp/linewise"
```

Use one mode per site. Do not configure both `theme = "linewise"` and a Linewise module import.

## Configuration

Add the Linewise defaults to your site config:

```toml
[taxonomies]
tag = "tags"

[params.linewise]
description = "Notes from the command line."
author = "Your Name"
locale = "en"
favicon = "favicon.svg"
ogImage = "og.svg"
showExplorer = true
showBufferline = true

[params.linewise.comments]
provider = "none"

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

[outputFormats.JSON]
mediaType = "application/json"
baseName = "search"
isPlainText = true

[markup.highlight]
noClasses = false
```

Write posts in `content/posts/`:

```md
---
title: "Your Post Title"
description: "A short description for SEO and previews."
date: 2026-01-01
tags: ["notes"]
draft: false
---
```

Read the full documentation on the example site: [Theme Reference](https://linewise.tabsp.com/posts/theme-reference/).

## Development

```sh
pnpm install
pnpm dev
pnpm build
pnpm test
```

`pnpm dev` serves the example site at `http://localhost:4322/`.

## Project Layout

```text
archetypes/          Hugo archetypes
assets/              Theme CSS and TypeScript bundled by Hugo Pipes
exampleSite/         Example Hugo site
images/              Theme screenshots
layouts/             Hugo templates, partials, and shortcodes
static/              Theme-owned static assets
theme.toml           Hugo theme metadata
```

## License

MIT
反馈内容错误

看看同类模板

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