Skip to content

hanezu/hanezu.github.io

Repository files navigation

Jekyll + Lagrange

Setup

Install jekyll

brew install as in the documentation. then jekyll serve.

I also needed to bundle install and use bundle exec jekyll serve on High Sierra

LaTeX support

Inserted the following snippet at the bottom of a markdown post to support LaTeX equations.

<script type="text/javascript" async
 src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML">
</script>
<script type="text/x-mathjax-config">
 MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>

Custom excerpt

custimize the excerpt of a post by adding excerpt_separator: "<!--more-->" to the front matter, and add <!--more--> to wherever we want to end the excerpt.

Tags

Chinese blogs

['Work', 'Life', 'Anime']