Coder Social home page Coder Social logo

aning3020 / tmaize-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tmaize/tmaize-blog

0.0 0.0 0.0 14.15 MB

一款jekyll主题,简洁纯净,支持自适应

Home Page: http://blog.tmaize.net/

License: MIT License

HTML 23.81% CSS 32.38% JavaScript 41.82% Batchfile 1.66% Ruby 0.32%

tmaize-blog's Introduction

介绍

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

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

本地运行

jekyll 是使用 ruby 写的,所以先自行安装 ruby

# 第一次运行先执行 bundle install
bundle exec jekyll serve --watch --host=0.0.0.0 --port=8080
# 国内依赖下载慢可以使用ruby-china的镜像站进行请求重定向
bundle config mirror.https://rubygems.org https://gems.ruby-china.com

项目配置

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

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

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

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

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

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

  7. 如果你是把项目 fork 过去的,想要删除我的提交记录可以先软重置到第一个提交,然后再提交一次,最后强制推送一次就行了

使用

文章放在_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)

tmaize-blog's People

Contributors

tmaize avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.