前言
jekyll 搭建博客可以很方便的发布在GitHub Pages上面,但是由于 GitHub 官方支持的主题插件比较少,我使用了一个非官方的主题插件——Jekyll Minimal Mistakes。这个主题还挺好的用的,但是由于缺少一些中文文档,这里把搭建过程整理下来方便,以后有需求的人复用,也方便我万一断更了更容易把这项技能捡起来。
项目地址:https://github.com/mmistakes/minimal-mistakes
网站部署
发布文章
在 _posts 目录下添加一个文件:
vim _posts/2022-11-15-test.md
---
layout: single
title: "test"
date: 2022-11-15 12:00
author_profile: false
---
# Header
## Header 2
### Header 3
#### Header 4
#### Header 5
发布专题
编辑 navigation.yml 文件
vim ./_data/navigation.yml
# main links
main:
- title: "关于"
url: /about/
- title: "Ceph专题"
url: /ceph/
- title: "Kubernetes专题"
url: /kubernetes/
- title: "Interview专题"
url: /interview/
+ - title: "test"
+ url: /test/
在 page 目录下面创建一个 test.md的文件,添加如下内容:
vim ./_pages/test.md
# test collection
---
layout: collection
title: "test"
permalink: /test/
collection: test
author_profile: false
---
编辑 _config.yml 增加一条 test collection
vim _config.yml
# ...
# Collections
collections:
ceph:
output: true
permalink: /:collection/:path/
+ test:
+ output: true
+ permalink: /:collection/:path/
# ..
# Defaults
defaults:
# _posts
- scope:
path: ""
type: posts
values:
layout: single
author_profile: true
read_time: true
comments: # true
share: false
related: true
# _ceph
- scope:
path: ""
type: ceph
values:
layout: single
author_profile: true
share: false
related: true
+ # _test
+ - sope:
+ pah: ""
+ type: test
+ vaues:
+ layout: sngle
+ authr_profile: true
+ share false
+ related: true
更多技术分享浏览我的博客:
https://thierryzhou.github.io
原文地址:https://cloud.tencent.com/developer/article/2182769
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。