關(guān)于 Minimal
Minimal
簡(jiǎn)介、優(yōu)雅、尊貴。一款能展示項(xiàng)目的主題;Minimal
是一款專為開源貢獻(xiàn)者而生的hexo
博客主題。Minimal
在原始文章結(jié)構(gòu)的基礎(chǔ)上,實(shí)現(xiàn)了新的 項(xiàng)目結(jié)構(gòu); 使得通過同一hexo
博客下共同實(shí)現(xiàn) 文章與目錄的 區(qū)別展示與分頁(yè)效果。 博主只需要引入Minimal
主題,并在自己原有的博客網(wǎng)站中添加新的項(xiàng)目?jī)?nèi)容,或?qū)υ械奈恼聝?nèi)容進(jìn)行細(xì)微調(diào)整即可豐富自己博客網(wǎng)站的展示效果。向無私的開源貢獻(xiàn)者們 【致敬】!。
安裝
在終端窗口下,定位到 Hexo 站點(diǎn)目錄下。使用 Git checkout 代碼:
$ cd your-hexo-site
$ git clone https://github.com/ckryo/hexo-theme-minimal themes/minimal
啟用主題
與所有 Hexo 主題啟用的模式一樣。 當(dāng) git clone
完成后,打開 站點(diǎn) 配置文件 , 找到 theme 字段,并將其值更改為 minimal
。
theme: minimal
如果您的電腦中尚未安裝所需要的程序,請(qǐng)根據(jù)以下安裝指示完成安裝。
主題設(shè)定
以下是主題配置文件項(xiàng)目說明:
site:
logo: 網(wǎng)站logo - 文字logo
title: 網(wǎng)站標(biāo)題
keywords: 網(wǎng)站關(guān)鍵字
description: 網(wǎng)站描述
banner: 網(wǎng)站上部 - 導(dǎo)航下面banner 區(qū)域樣式
title: 自定義顯示標(biāo)題
description: 副標(biāo)題
background_image: 背景圖片
author: 網(wǎng)站側(cè)邊欄的作者信息
avatar: 頭像圖片地址
nick: 昵稱
description: 個(gè)人簡(jiǎn)介
menu: 導(dǎo)航菜單
首頁(yè): /
項(xiàng)目: /project/index.html
文章: /post/index.html
關(guān)于我: /about.html
Minimal: /project/2016/04/28/hexo-minimal.html
menu_icons: 導(dǎo)航菜單圖標(biāo)
Minimal: tachometer
# 集成第三方服務(wù)
vendors:
# 社會(huì)化評(píng)論, 暢言
changyan:
app_id: cysYE5nWR
conf: prod_ea59e8a942c2c4c0e72b24ed00ecddc9
其它配置項(xiàng)說明:
-
項(xiàng)目目錄
定位到
your-hexo-site-path/source
目錄下, 新增_projects
文件目錄; 將項(xiàng)目文章放置到該文件目錄下即可。 -
Front-matter
# 公共屬性 preview: 類縮圖 comments: 是否添加評(píng)論 # project屬性 date: 項(xiàng)目創(chuàng)建時(shí)間 description: 項(xiàng)目描述 home_url: 項(xiàng)目主頁(yè) demo_url: 演示地址 or 下載鏈接
致歉
由于目前精力有限,該項(xiàng)目還有諸多不足之處,包括分類頁(yè)
,標(biāo)簽云
等,還請(qǐng)各位海涵,在以后的時(shí)間里,將會(huì)不斷更新完善。
同時(shí)也接受各種形式的貢獻(xiàn),包括不限于提交問題與需求,修復(fù)代碼。等待您的Pull Request。