Skip to content

Commit

Permalink
add mathjax
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjk committed Feb 22, 2018
1 parent ccc0792 commit 26f722d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
14 changes: 6 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Your awesome title
email: [email protected]
title: Notes for machine learning
email: hikihomori at gmail
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
Notes for machine learning and math
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username: jekyll
twitter_username: hikihomori
github_username: dongjk

# Build settings
markdown: kramdown
markdown: redcarpet
theme: minima
plugins:
- jekyll-feed
Expand Down
1 change: 1 addition & 0 deletions _includes/mathjax.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
3 changes: 3 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
14 changes: 14 additions & 0 deletions _posts/2018-02-22-welcome-to-jekyll.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: "Welcome to Jekyll!"
date: 2018-02-22 02:25:50 -0800
categories: jekyll update
---
{% include mathjax.html %}
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.

To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Expand All @@ -18,6 +19,19 @@ print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

$$
M = \left( \begin{array}{ccc}
x_{11} & x_{12} & \ldots \\
x_{21} & x_{22} & \ldots \\
\vdots & \vdots & \ldots \\
\end{array} \right)
$$

$$
\text{argmax}_{C_i} P(C_i)P(D|C_i)
$$

Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].

[jekyll-docs]: https://jekyllrb.com/docs/home
Expand Down

0 comments on commit 26f722d

Please sign in to comment.