yousinix / portfolYOU

A beautiful portfolio Jekyll theme that works with GitHub Pages.
https://yousinix.github.io/portfolYOU
MIT License
1k stars 598 forks source link

How do you enable latex equations in the blog posts? #57

Closed CtfChan closed 4 years ago

CtfChan commented 4 years ago

To answer my own question. Just add this line to your markdown blog file <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

---
title: "My blog"
tags: [something]
style: fill
color: dark
description: Another method o
---
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script> 

$$ Y_i(t) = a_i + b_i t + c_i t + d_i t^3$$