jekyll
使用的模板引擎是 Liquid 。
$ cd repoDir
$ bundle exec jekyll serve # 或者 ./run.sh 启动
然后就可以通过 http://localhost:4000本地访问了。
或者可以通过docker pull lwlwufeng/jekyll
直接使用搭建好的jekyll
镜像环境。
要求:python
$ python post.py 文章标题 分类名称
页面中加上mathjax: true
配置。
在需要使用原生代码的地方使用{% raw %}
和{% endraw %}
一前一后包裹住,如:
{% raw %}
{{ env.PATH }}
{% endraw %}