3 Star 88 Fork 52

TMaize / tmaize-blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

介绍

Language license GitHub stars

一款 jekyll 主题(GitHub 地址),简洁纯净(主题资源请求<20KB),未引入任何框架,秒开页面,支持自适应,支持全文检索,支持夜间模式

你可以到TMaize Blog查看主题效果 ,欢迎添加友链

感谢

JetBrains 免费提供的开发工具JetBrains

夜间模式代码高亮配色

本地运行

一般提交到 github 过个几十秒就可以看到效果,如果你需要对在本地查看效果需要安装 ruby 环境和依赖

windows 下推荐在 wsl 下装 ruby,直接一句apt install build-essential ruby ruby-dev 就行了

# linux下需要gcc

# gem sources --add https://gems.ruby-china.com/
# gem sources --remove https://rubygems.org/
# gem sources --remove https://mirrors.aliyun.com/rubygems/
# gem sources -l
gem install bundler
# bundle config mirror.https://rubygems.org https://gems.ruby-china.com
bundle install

通过下面命令启动/编译项目

bundle exec jekyll serve --watch --host=127.0.0.1 --port=8080
bundle exec jekyll build --destination=dist

如果需要替换代码高亮的样式可以通过下面的命令生成 css

rougify help style
rougify style github > highlighting.css

项目配置

  1. 如果使用自己的域名,CNAME文件里的内容请换成你自己的域名,然后 CNAME 解析到用户名.github.com

  2. 如果使用 GitHub 的的域名,请删除CNAME文件,然后把你的项目修改为用户名.github.io

  3. 修改pages/about.md中关于我的内容

  4. 修改_config.yml文件,具体作用请参考注释

  5. 清空posts_posts目录下所有文件,注意是清空,不是删除这两个目录

  6. 网站的 logo 和 favicon 放在了static/img/下,替换即可,大小无所谓,图片比例最好是 1:1

  7. 如果你是把项目 fork 过去的,想要删除我的提交记录可以使用下面的命令

    git checkout --orphan temp
    git add . && git commit -m init
    git branch -D master
    git branch -m temp master
    git push --force

使用

文章放在_posts目录下,命名为yyyy-MM-dd-xxxx-xxxx.md,内容格式如下

---
layout: mypost
title: 标题
categories: [分类1, 分类2]
---
文章内容,Markdown格式

文章资源放在posts目录,如文章文件名是2019-05-01-theme-usage.md,则该篇文章的资源需要放在posts/2019/05/01下,在文章使用时直接引用即可。当然了,写作的时候会提示资源不存在忽略即可

![这是图片](xxx.png)

[xxx.zip 下载](xxx.zip)
MIT License Copyright (c) 2019 TMaize Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一款jekyll主题,简洁纯净,支持自适应 展开 收起
HTML/CSS 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
HTML/CSS
1
https://gitee.com/tmaize/demo-tmaize-blog.git
git@gitee.com:tmaize/demo-tmaize-blog.git
tmaize
demo-tmaize-blog
tmaize-blog
master

搜索帮助

14c37bed 8189591 565d56ea 8189591