696be47e585d

MathJaxpocalypse
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 10 Apr 2017 16:10:41 +0000
parents 50d1232228a3
children 88e1e358f431
branches/tags (none)
files content/blog/2015/11/beat-the-data.markdown content/blog/2015/12/permutation-patterns.markdown content/blog/2016/02/midpoint-displacement.markdown content/blog/2016/08/lisp-jam-postmortem.markdown themes/stevelosh/archetypes/blog.md themes/stevelosh/layouts/partials/header.html

Changes

--- a/content/blog/2015/11/beat-the-data.markdown	Sat Apr 08 14:24:09 2017 +0000
+++ b/content/blog/2015/11/beat-the-data.markdown	Mon Apr 10 16:10:41 2017 +0000
@@ -2,6 +2,7 @@
 title = "Just Beat the Data Out of It"
 snip = "Round two of the Bob Ross Twitch chat analysis."
 date = 2015-11-30T16:10:00Z
+mathjax = true
 draft = false
 
 +++
--- a/content/blog/2015/12/permutation-patterns.markdown	Sat Apr 08 14:24:09 2017 +0000
+++ b/content/blog/2015/12/permutation-patterns.markdown	Mon Apr 10 16:10:41 2017 +0000
@@ -3,6 +3,7 @@
 snip = "A short introduction."
 date = 2015-12-10T19:55:00Z
 draft = false
+mathjax = true
 
 +++
 
--- a/content/blog/2016/02/midpoint-displacement.markdown	Sat Apr 08 14:24:09 2017 +0000
+++ b/content/blog/2016/02/midpoint-displacement.markdown	Mon Apr 10 16:10:41 2017 +0000
@@ -2,6 +2,7 @@
 title = "Terrain Generation with Midpoint Displacement"
 snip = "A first step toward growing worlds with computers."
 date = 2016-02-19T19:45:00Z
+mathjax = true
 draft = false
 
 +++
--- a/content/blog/2016/08/lisp-jam-postmortem.markdown	Sat Apr 08 14:24:09 2017 +0000
+++ b/content/blog/2016/08/lisp-jam-postmortem.markdown	Mon Apr 10 16:10:41 2017 +0000
@@ -2,6 +2,7 @@
 title = "August 2016 Lisp Game Jam Postmortem"
 snip = "Porting a game from Clojure to Common Lisp."
 date = 2016-08-15T13:45:00Z
+mathjax = true
 draft = false
 
 +++
--- a/themes/stevelosh/archetypes/blog.md	Sat Apr 08 14:24:09 2017 +0000
+++ b/themes/stevelosh/archetypes/blog.md	Mon Apr 10 16:10:41 2017 +0000
@@ -1,3 +1,4 @@
 +++
 snip = "snippet"
+mathjax = false
 +++
--- a/themes/stevelosh/layouts/partials/header.html	Sat Apr 08 14:24:09 2017 +0000
+++ b/themes/stevelosh/layouts/partials/header.html	Mon Apr 10 16:10:41 2017 +0000
@@ -24,14 +24,18 @@
         <link rel="stylesheet" href="/media/css/aal.css"   type="text/css" media="screen" charset="utf-8" />
         <link rel="stylesheet" href="/media/css/sjl.css"   type="text/css" media="screen" charset="utf-8" />
         <link rel="stylesheet" href="/media/css/print.css" type="text/css" media="print" charset="utf-8" />
-        <link rel="stylesheet" href="/media/css/pygments-clean.css"
-          type="text/css" media="screen" charset="utf-8" />
+        <link rel="stylesheet" href="/media/css/pygments-clean.css" type="text/css" media="screen" charset="utf-8" />
 
-        <script data-cfasync="false" src="/media/js/jquery.js" type="text/javascript"></script>
-        <script data-cfasync="false" src="/media/js/jquery.timeago.js" type="text/javascript"></script>
-        <script data-cfasync="false" src="/media/js/sjl.js" type="text/javascript"></script>
-        <script data-cfasync="false" src="/media/js/print.js" type="text/javascript"></script>
-        <script data-cfasync="false" type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script src="/media/js/jquery.js" type="text/javascript"></script>
+        <script src="/media/js/jquery.timeago.js" type="text/javascript"></script>
+        <script src="/media/js/sjl.js" type="text/javascript"></script>
+        <script src="/media/js/print.js" type="text/javascript"></script>
+
+        {{ if .Params.mathjax }}
+        <script type="text/javascript" async
+            src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+        </script>
+        {{ end }}
 
         <link rel="openid.server" href="http://www.myopenid.com/server" />
         <link rel="openid.delegate" href="http://stevelosh.myopenid.com/" />