Chaoyi Zhao

About

How to use and test

About

使用toc注意

需要在开头有 >开头的一行,运行代码addtoc.py即可

本地测试

因路径问题,本地不能显示图片

gem install jekyll bundler
bundler install
bundler add webrick
bundle exec jekyll serve

List管理

Directory: _featured_tags

在文件夹中添加文件,头部格式

---
layout: list
title: [content]
slug: [tag] #用于链接到该list的文件
menu: true
order: num
description: >
  content
accent_color: '#268bd2'
accent_image:
  background: '#202020'
  overlay:    false
---

Post管理

Direcoty: _posts

在文件夹中添加文件,头部格式如下

---
layout: post
title: Content
description: >
  Content
tags: [tag] #对应上面的tag
author: zcy
---

Jekyll公式渲染

_config.yml添加markdown: kramdown

_includes/head.html添加

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
        tex2jax: {
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
        inlineMath: [['$','$']]
        }
    });
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

本地调试

需要修改_config.yaml中的配置