Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hexo-theme-diaspora

> 编程语言
Open source

Hexo theme, Blog theme, Clean, Responsive theme

1.3K stars0 likes2 views
WebsiteGitHub

About

Hexo theme, Blog theme, Clean, Responsive theme

Hexo-theme-diaspora

在线预览 | PREVIEW

一款基于WP移植的Hexo主题,适合喜欢摄影,影评,乐评和玩弄文字的你,干净,清新; 响应式,Ajax,更多好玩的等你来发现。

再次感谢原作者创作出这么精美的主题 @Loeify 。如果你喜欢,请捐助原作者。

安装主题

$ git clone https://github.com/Fechin/hexo-theme-diaspora.git themes/diaspora

启用主题

修改Hexo配置文件 _config.yml 主题项设置为diaspora


...
theme: diaspora
...

更新主题

注意:请在更时主题时备份_config.yml配置文件

cd themes/diaspora
git pull

新建文章模板

---
title: My awesome title
date: 2016-10-12 18:38:45
categories: 
    - 分类1
    - 分类2
tags: 
    - 标签1
    - 标签2
mp3: http://domain.com/awesome.mp3
cover: http://domain.com/awesome.jpg
---

创建分类页

1 新建一个页面,命名为 categories 。命令如下:

hexo new page categories

2 编辑刚新建的页面,将页面的类型设置为 categories

title: categories
date: 2014-12-22 12:39:04
type: "categories"
---

主题将自动为这个页面显示所有分类。

创建标签页

1 新建一个页面,命名为 tags 。命令如下:

hexo new page tags

2 编辑刚新建的页面,将页面的类型设置为 tags

title: tags
date: 2014-12-22 12:39:04
type: "tags"
---

主题将自动为这个页面显示所有标签。

创建搜索页

1 需要安装hexo的搜索插件

npm install hexo-generator-searchdb --save

2 配置hexo全局配置文件(请将生成的索引文件放在网站根目录或修改主题js文件的path值)

search:
  path: search.xml
  field: post
  format: html
  limit: 10000

3 新建一个页面,命名为 search 。命令如下:

hexo new page search

4 编辑刚新建的页面,将页面的类型设置为 search

title: search
date: 2014-12-22 12:39:04
type: "search"
---

5 在主题配置文件启用本地搜索

#本地搜索,请将索引文件放在网站根目录
local_search:
    #是否启用
    enable: true

主题将自动为这个页面显示搜索功能。

主题配置

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptbloghexotheme

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言