Jekyll博客

texture — Jekyll 博客模板

作者 samarsault

texture 是一个面向简洁博客的 Jekyll 主题,通过 _config.yml 中的 texture 配置项自定义标题、标语、社交链接、配色风格与导航。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

采集于 2026-09-30查看来源

值得关注的模板亮点

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

01

通过 _config.yml 的 texture 键集中配置标题、标语、日期格式与社交链接

02

内置 yellow、red、black、blue、green、purple 六种头部配色风格

03

提供开发用 texture picker,可实时切换纹理,生产环境需关闭

04

支持 Disqus 评论、Google Analytics、文章摘要与可开关导航栏

05

提供 Home、Page、Post 三种布局

06

支持 GitHub Pages 的 remote_theme 方式或作为 gem 安装

模板详细介绍

texture 是一个 Jekyll 博客主题,定位是「可配置的简洁博客」。它通过 _config.yml 中的 texture 键集中管理站点信息与外观,包括标题、标语、日期格式和社交链接(Twitter、GitHub、LinkedIn)。主题内置多种头部配色风格,可在 yellow、red、black、blue、green、purple 之间切换;还提供一个开发用的 texture picker,通过 showPicker 开关在页面上切换不同纹理,README 提示生产环境应将其设为 false。

功能方面,主题支持 Disqus 评论(填写 disqus_shortname)、Google Analytics(填写 analytics_id)、文章摘要(show_excerpts)以及可开关的导航栏(showNav),导航项以 title 与 url 列表形式配置。主题提供 Home、Page、Post 三种布局。

安装方式有两种:在 GitHub Pages 上使用 remote_theme: samarsault/texture;或作为 gem 安装,在 Gemfile 中加入 gem "texture",并在 _config.yml 中设置 theme: texture,然后执行 bundle 或 gem install texture。README 特别提醒:如果 fork 该仓库,需要移除 _config.yml 中的 base_url: /texture,否则资源加载会受影响。

许可方面,仓库采用 MIT 许可,允许免费使用、修改、商用和分发该版本代码,分发时需保留版权声明与许可声明;但演示图片、字体、图标等第三方素材需按各自许可单独核对,域名、托管等外部服务也可能另行收费。

Jekyll博客

适合你的项目吗?

适用场景

  • 搭建个人技术博客或写作博客
  • 在 GitHub Pages 上快速部署 Jekyll 站点
  • 需要按文章列表与详情页组织内容的轻量博客
  • 希望通过配置文件而非改代码来调整站点外观

适合人群

  • 使用 Jekyll 并希望以配置方式定制博客的开发者
  • 在 GitHub Pages 上托管静态博客的用户
  • 偏好简洁排版、不需要复杂功能模块的写作者

上手与定制指南

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

  1. 1

    GitHub Pages 方式:在 _config.yml 添加 remote_theme: samarsault/texture

  2. 2

    Gem 方式:Gemfile 加入 gem "texture",_config.yml 设置 theme: texture,然后执行 bundle 或 gem install texture

  3. 3

    fork 仓库时需移除 _config.yml 中的 base_url: /texture,否则资源无法正常加载

  4. 4

    开发时可用 showPicker 切换纹理,上线前应设为 false

  5. 5

    本地开发执行 bundle install 后运行 bundle exec jekyll serve,访问 http://localhost:4000

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 启用文章评论需填写 Disqus 短名,评论功能依赖 Disqus 这一第三方外部服务,可能需要注册账号并受其服务条款约束。
  • 启用访问统计需填写 Google Analytics 的 ID,该功能依赖 Google 的外部服务,可能需要账号并受其条款与隐私政策约束。
  • 开发用的 texture picker 需在生产环境将 showPicker 设为 false,否则站点会保留纹理切换控件。
  • 若 fork 该仓库,必须移除 _config.yml 中的 base_url: /texture,否则站点资源无法正常加载。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Comments on posts can be enabled by specifying your disqus_shortname

README 原文

It can be enabled by specifying your analytics id

README 原文

Remember to make it `false` for production.

README 原文

remove `base_url: /texture` in the `_config.yml`

README 原文
https://github.com/samarsault/texture/blob/master/LICENSE.txthttps://github.com/samarsault/texture/blob/master/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2024-07-01
截图检查日期
2026-10-01

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 0b15f34647ff2969bfbc8ade0f58bcf1016697e3e8f8827f2a0171131d8e511c

2026-10-01T15:08:41.266Z

来源文件 / 仓库
# texture

A configurable jekyll theme for simply beautiful blogs.

**Demo**: [samarsault.com/texture](https://samarsault.com/texture)

![texture theme preview](/screen1.png)


## Installation on Github Pages

Add this line to your site's `_config.yml`:
```yaml
remote_theme: samarsault/texture
```

**NOTE: If you are forking this repo, remove `base_url: /texture` in the `_config.yml` which is required to load the required website assets**
## Installation

Add this line to your Jekyll site's `Gemfile`:

```ruby
gem "texture"
```

And add this line to your Jekyll site's `_config.yml`:

```yaml
theme: texture
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install texture

## Usage

The "texture" key in _config.yml is used to customize the theme data.
```yaml
texture:
  title: Adam Denisov
  tagline: Developer. Designer
  date_format: "%b %-d, %Y"

  social_links:
    twitter: thelehhman
    github:  thelehhman
    linkedIn: in/thelehhman # format: locale/username
```

**Styling**

Multiple header styles are supported using the "style" property under texture in `_config.yml`.

```yaml
texture:
  style: [yellow|red|black|blue|green|purple]
```

For example, the blue style looks like this:

![texture theme blue](/screen2.png)


**Texture Picker**

You can toggle the texture picker to show/experiment various textures on your site using the showPicker variable. Remember to make it `false` for production.

```yaml
texture:
  showPicker: [false|true] # show the texture selector(development purposes)
```

**Comments (Disqus)**

Comments on posts can be enabled by specifying your disqus_shortname under texture in `_config.yml`. For example,
```yaml
texture:
  disqus_shortname: games
```

**Google Analytics**

It can be enabled by specifying your analytics id under texture in `_config.yml`
```yaml
texture:
  analytics_id: '< YOUR ID >'
```

**Excerpts**

Excerpts can be enabled by adding the following line to your `_config.yml`
```yaml
show_excerpts: true
```

**Toggle Navbar**

```yaml
texture:
  showNav: true
```

**Navigation**

After setting `showNav` to true navigation can be built by adding the following to your `_config.yml`

```yaml
texture:
  navigation:
    - title: My Work
      url: "/my-work"
    - title: Resume
      url: "/resume"
```

**Layouts**

- Home
- Page
- Post

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/samarsault/texture. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## Development

To set up your environment to develop this theme, run `bundle install`.

Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.

When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in `texture.gemspec` accordingly.

## Donation
If this project help you reduce time to develop, you can give me a cup of coffee :) 

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/thelehhman)

## License

The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## More Themes
[plainwhite](https://github.com/samarsault/plainwhite-jekyll)
反馈内容错误

看看同类模板

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