Permalink
Browse files

Add KaTeX.

  • Loading branch information...
oblitum committed Apr 24, 2016
1 parent a491cb0 commit 2726427d5899720447d90177824ab26996bb0750
Showing with 12 additions and 9 deletions.
  1. +2 −2 layouts/_default/list.html
  2. +2 −2 layouts/_default/single.html
  3. +2 −2 layouts/index.html
  4. +4 −0 layouts/partials/head.html
  5. +2 −3 layouts/post/single.html
@@ -39,8 +39,8 @@ <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ partial "footer.html" . }}
</div>
<script src="{{ .Site.BaseURL }}js/slim.js"></script>
<script>renderMathInElement(document.body);</script>
{{ with .Site.Params.AnalyticsID }}{{ partial "analytics.html" . }}{{ end }}
</body>
</html>
</html>
@@ -19,8 +19,8 @@ <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ partial "footer.html" . }}
</div>
<script src="{{ .Site.BaseURL }}/js/slim.js"></script>
<script>renderMathInElement(document.body);</script>
{{ with .Site.Params.AnalyticsID }}{{ partial "analytics.html" . }}{{ end }}
</body>
</html>
</html>
View
@@ -39,8 +39,8 @@ <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ partial "footer.html" . }}
</div>
<script src="{{ .Site.BaseURL }}/js/slim.js"></script>
<script>renderMathInElement(document.body);</script>
{{ with .Site.Params.AnalyticsID }}{{ partial "analytics.html" . }}{{ end }}
</body>
</html>
</html>
@@ -6,6 +6,10 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/slim.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/highlight.min.css">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Source+Code+Pro' rel='stylesheet' type='text/css'>
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/contrib/auto-render.min.js"></script>
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.ico">
View
@@ -43,9 +43,8 @@ <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</div>
<script src="{{ .Site.BaseURL }}/js/slim.js"></script>
<script src="{{ .Site.BaseURL }}/js/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>hljs.initHighlightingOnLoad();</script>
<script>renderMathInElement(document.body);</script>
{{ with .Site.Params.AnalyticsID }}{{ partial "analytics.html" . }}{{ end }}
</body>

0 comments on commit 2726427

Please sign in to comment.