fdf01e99fd51

Hugo's TOC support is fucked, reimplement in JS

God is dead.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 10 Oct 2016 14:26:27 +0000
parents b6315c102a84
children 653f385c1bee
branches/tags (none)
files Makefile content/blog/2009/01/deploying-site-fabric-and-mercurial.markdown content/blog/2009/02/how-and-why-i-dj.markdown content/blog/2009/02/how-i-shoot-dances.markdown content/blog/2009/05/what-i-hate-about-mercurial.markdown content/blog/2009/06/how-to-contribute-to-mercurial.markdown content/blog/2009/08/a-guide-to-branching-in-mercurial.markdown content/blog/2009/11/my-sitesprint-project-lindyhub.markdown content/blog/2010/01/moving-from-django-to-hyde.markdown content/blog/2010/01/the-real-difference-between-mercurial-and-git.markdown content/blog/2010/02/mercurial-workflows-branch-as-needed.markdown content/blog/2010/02/my-extravagant-zsh-prompt.markdown content/blog/2010/04/a-faster-feed-apart.markdown content/blog/2010/05/mercurial-workflows-stable-default.markdown content/blog/2010/06/mercurial-workflows-translation-branches.markdown content/blog/2010/08/a-git-users-guide-to-mercurial-queues.markdown content/blog/2010/09/coming-home-to-vim.markdown content/blog/2010/09/making-my-site-sing.markdown content/blog/2010/11/keep-calm-and-carry-on.markdown content/blog/2011/05/on-learning-and-teaching.markdown content/blog/2011/05/paper-free.markdown content/blog/2011/06/django-advice.markdown content/blog/2011/09/writing-vim-plugins.markdown content/blog/2012/07/caves-of-clojure-01.markdown content/blog/2012/07/caves-of-clojure-02.markdown content/blog/2012/07/caves-of-clojure-03-1.markdown content/blog/2012/07/caves-of-clojure-03-2.markdown content/blog/2012/07/caves-of-clojure-03-3.markdown content/blog/2012/07/caves-of-clojure-03-4.markdown content/blog/2012/07/caves-of-clojure-04.markdown content/blog/2012/07/caves-of-clojure-05.markdown content/blog/2012/07/caves-of-clojure-06.markdown content/blog/2012/07/caves-of-clojure-interlude-1.markdown content/blog/2012/10/a-modern-space-cadet.markdown content/blog/2012/10/caves-of-clojure-07-1.markdown content/blog/2012/10/the-homely-mutt.markdown content/blog/2012/10/why-i-two-space.markdown content/blog/2013/03/list-out-of-lambda.markdown content/blog/2013/04/git-koans.markdown content/blog/2013/09/teach-dont-tell.markdown content/blog/2015/11/beat-the-data.markdown content/blog/2015/11/happy-little-words.markdown content/blog/2015/12/ludum-dare-34.markdown content/blog/2015/12/permutation-patterns.markdown content/blog/2016/02/midpoint-displacement.markdown content/blog/2016/03/recursive-midpoint-displacement.markdown content/blog/2016/06/diamond-square.markdown content/blog/2016/06/symbolic-computation.markdown content/blog/2016/08/lisp-jam-postmortem.markdown content/blog/2016/09/iterate-averaging.markdown layouts/shortcodes/toc.html static/media/css/sjl.css static/media/css/sjl.less static/media/js/sjl.js themes/stevelosh/layouts/blog/single.html

Changes

--- a/Makefile	Mon Oct 10 11:15:31 2016 +0000
+++ b/Makefile	Mon Oct 10 14:26:27 2016 +0000
@@ -18,5 +18,5 @@
 serve:
 	hugo server -t stevelosh
 
-deploy: public
+deploy: public/index.html
 	rsync -avz ./public/ sl:/var/www/stevelosh.com
--- a/content/blog/2009/01/deploying-site-fabric-and-mercurial.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2009/01/deploying-site-fabric-and-mercurial.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -23,7 +23,7 @@
 [RSS feeds]: /rss/
 [Django]: {{links.django}}
 
-{{% toc %}}
+<div id="toc"></div>
 
 My Basic Deployment Steps
 -------------------------
--- a/content/blog/2009/02/how-and-why-i-dj.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2009/02/how-and-why-i-dj.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -10,7 +10,7 @@
 and rewarding. I've got a system that I use to keep myself sane while doing it
 and I felt like sharing. Let me know what you think!
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## How I Started
 
--- a/content/blog/2009/02/how-i-shoot-dances.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2009/02/how-i-shoot-dances.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [Gordon Webster]: http://webster.suresong.com/
 [LindyBloggers]: http://lindybloggers.com/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Shooting Dancers is Tough
 -------------------------
--- a/content/blog/2009/05/what-i-hate-about-mercurial.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2009/05/what-i-hate-about-mercurial.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -22,7 +22,7 @@
 I love Mercurial to death, but there *are* a few things about it that annoy
 me. Here they are, in no particular order.
 
-{{% toc %}}
+<div id="toc"></div>
 
 Configuration Through a Textfile
 --------------------------------
--- a/content/blog/2009/06/how-to-contribute-to-mercurial.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2009/06/how-to-contribute-to-mercurial.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -17,7 +17,7 @@
 
 [hate]: http://stevelosh.com/blog/entry/2009/5/29/what-i-hate-about-mercurial/
 
-{{% toc %}}
+<div id="toc"></div>
 
 About This Guide
 ----------------
--- a/content/blog/2009/08/a-guide-to-branching-in-mercurial.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2009/08/a-guide-to-branching-in-mercurial.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -35,7 +35,7 @@
 [book-buy]: http://search.barnesandnoble.com/Mercurial/Bryan-OSullivan/e/9780596800673/?itm=1
 [editfail]: http://twitpic.com/cwod4
 
-{{% toc %}}
+<div id="toc"></div>
 
 Prologue
 --------
--- a/content/blog/2009/11/my-sitesprint-project-lindyhub.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2009/11/my-sitesprint-project-lindyhub.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -26,7 +26,7 @@
 [SiteSprint]: http://sitesprint.info/
 [LindyHub]: http://lindyhub.com/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Preface: About Swing Dancing
 ----------------------------
--- a/content/blog/2010/01/moving-from-django-to-hyde.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/01/moving-from-django-to-hyde.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -32,7 +32,7 @@
 [Blatter]: {{links.blatter}}
 [Pilcrow]: http://inky.github.com/pilcrow/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Why Static?
 -----------
--- a/content/blog/2010/01/the-real-difference-between-mercurial-and-git.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/01/the-real-difference-between-mercurial-and-git.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -33,7 +33,7 @@
 [git]: {{links.git}}
 [hgbranch]: /blog/2009/08/a-guide-to-branching-in-mercurial/#branching-anonymously
 
-{{% toc %}}
+<div id="toc"></div>
 
 The Big Difference
 ------------------
--- a/content/blog/2010/02/mercurial-workflows-branch-as-needed.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/02/mercurial-workflows-branch-as-needed.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -33,7 +33,7 @@
 [hg book]: http://hgbook.red-bean.com/
 [hgbranching]: /blog/2009/08/a-guide-to-branching-in-mercurial/
 
-{{% toc %}}
+<div id="toc"></div>
 
 "Branch as Needed" in a Nutshell
 --------------------------------
--- a/content/blog/2010/02/my-extravagant-zsh-prompt.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/02/my-extravagant-zsh-prompt.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -33,7 +33,7 @@
 [candy]: /blog/2009/03/candy-colored-terminal/
 [twsl]: {{links.twsl}}
 
-{{% toc %}}
+<div id="toc"></div>
 
 Why Should You Care?
 --------------------
--- a/content/blog/2010/04/a-faster-feed-apart.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/04/a-faster-feed-apart.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -44,7 +44,7 @@
 [ali]: http://alialithinks.com/
 [aliblog]: http://www.dcamm.com/blog/archives/765
 
-{{% toc %}}
+<div id="toc"></div>
 
 How AFA is Used
 ---------------
--- a/content/blog/2010/05/mercurial-workflows-stable-default.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/05/mercurial-workflows-stable-default.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -15,7 +15,7 @@
 
 [branch-as-needed]: /blog/2010/02/mercurial-workflows-branch-as-needed/
 
-{{% toc %}}
+<div id="toc"></div>
 
 "Stable and Default" in a Nutshell
 ----------------------------------
--- a/content/blog/2010/06/mercurial-workflows-translation-branches.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/06/mercurial-workflows-translation-branches.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -18,7 +18,7 @@
 [branch-as-needed]: /blog/2010/02/mercurial-workflows-branch-as-needed/
 [default-and-stable]: /blog/2010/05/mercurial-workflows-stable-default/
 
-{{% toc %}}
+<div id="toc"></div>
 
 A Real Example
 --------------
--- a/content/blog/2010/08/a-git-users-guide-to-mercurial-queues.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/08/a-git-users-guide-to-mercurial-queues.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -25,7 +25,7 @@
 [Mercurial]: {{links.mercurial}}
 [mq-book]: http://hgbook.red-bean.com/read/managing-change-with-mercurial-queues.html
 
-{{% toc %}}
+<div id="toc"></div>
 
 Git Basics
 ----------
--- a/content/blog/2010/09/coming-home-to-vim.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/09/coming-home-to-vim.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -33,7 +33,7 @@
 [grok]: http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118
 [home]: http://weblog.jamisbuck.org/2008/10/10/coming-home-to-vim
 
-{{% toc %}}
+<div id="toc"></div>
 
 Some Background About Me
 ------------------------
--- a/content/blog/2010/09/making-my-site-sing.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/09/making-my-site-sing.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -24,7 +24,7 @@
 [Dumbwaiter Design]: http://dwaiter.com/
 [using Hyde]: /blog/2010/01/moving-from-django-to-hyde/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Finding a Starting Point
 ------------------------
--- a/content/blog/2010/11/keep-calm-and-carry-on.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2010/11/keep-calm-and-carry-on.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -16,7 +16,7 @@
 
 [llb]: http://ladyluckblues.com/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Saint James Infirmary
 ---------------------
--- a/content/blog/2011/05/on-learning-and-teaching.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2011/05/on-learning-and-teaching.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -14,7 +14,7 @@
 In a nutshell: I think he's pretty much correct.  I wanted to write this post because
 I think I have a solution to the problem that might work, at least for some people.
 
-{{% toc %}}
+<div id="toc"></div>
 
 [Zack Kurmas]: http://www.cis.gvsu.edu/~kurmasz/
 [The deep end of the pool]: http://spin.atomicobject.com/2011/05/17/the-deep-end-of-the-pool/
--- a/content/blog/2011/05/paper-free.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2011/05/paper-free.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -44,7 +44,7 @@
 the important pieces of software will run on Windows and I'm sure there are
 Windows/Android equivalents to the other pieces.
 
-{{% toc %}}
+<div id="toc"></div>
 
 Scanning at Home
 ----------------
--- a/content/blog/2011/06/django-advice.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2011/06/django-advice.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [Django]: {{links.django}}
 [Twitter]: http://twitter.com/stevelosh
 
-{{% toc %}}
+<div id="toc"></div>
 
 Vagrant
 -------
--- a/content/blog/2011/09/writing-vim-plugins.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2011/09/writing-vim-plugins.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -17,7 +17,7 @@
 [vimpost]: http://stevelosh.com/blog/2010/09/coming-home-to-vim/
 [Vim]: http://www.vim.org/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Other People Who Know More Than I Do
 ------------------------------------
--- a/content/blog/2012/07/caves-of-clojure-01.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-01.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -46,7 +46,7 @@
 Let's jump in.  This entry corresponds to [post one in Trystan's
 tutorial][trystan-tut].
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-02.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-02.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-03-1.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-03-1.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-03-2.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-03-2.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-03-3.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-03-3.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-03-4.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-03-4.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -21,7 +21,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-04.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-04.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-05.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-05.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -28,7 +28,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-06.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-06.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -24,7 +24,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/07/caves-of-clojure-interlude-1.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/07/caves-of-clojure-interlude-1.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/10/a-modern-space-cadet.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/10/a-modern-space-cadet.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -21,7 +21,7 @@
 customizing my machine to save me time.  Yes, there may be some excessive stuff
 here, but not only does it make me type faster, it's *fun*!
 
-{{% toc %}}
+<div id="toc"></div>
 
 [Vim]: /blog/2010/09/coming-home-to-vim/
 [Mutt]: /blog/2012/10/the-homely-mutt/
--- a/content/blog/2012/10/caves-of-clojure-07-1.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/10/caves-of-clojure-07-1.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -28,7 +28,7 @@
 [bb]: http://bitbucket.org/sjl/caves/
 [gh]: http://github.com/sjl/caves/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Summary
 -------
--- a/content/blog/2012/10/the-homely-mutt.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/10/the-homely-mutt.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [sparrow-dead]: http://www.theverge.com/2012/7/20/3172222/google-buys-sparrow-mail
 [Mutt]: http://www.mutt.org/
 
-{{% toc %}}
+<div id="toc"></div>
 
 How I Use Email
 ---------------
--- a/content/blog/2012/10/why-i-two-space.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2012/10/why-i-two-space.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -17,7 +17,7 @@
 [Markdown]: http://daringfireball.net/projects/markdown/
 [slate]: http://www.slate.com/articles/technology/technology/2011/01/space_invaders.html
 
-{{% toc %}}
+<div id="toc"></div>
 
 The Arguments for One-Spacing
 -----------------------------
--- a/content/blog/2013/03/list-out-of-lambda.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2013/03/list-out-of-lambda.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -56,7 +56,7 @@
 [The Little Schemer]: http://www.amazon.com/dp/0262560992/?tag=stelos-20
 [SICP]: http://www.amazon.com/dp/0070004846/?tag=stelos-20
 
-{{% toc %}}
+<div id="toc"></div>
 
 Lists
 -----
--- a/content/blog/2013/04/git-koans.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2013/04/git-koans.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -10,7 +10,7 @@
 
 [Vim Koans]: http://blog.sanctum.geek.nz/vim-koans/
 
-{{% toc %}}
+<div id="toc"></div>
 
 Silence
 -------
--- a/content/blog/2013/09/teach-dont-tell.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2013/09/teach-dont-tell.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -30,7 +30,7 @@
 [cz]: http://craigzheng.com/
 [honza]: http://honza.ca/
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## Prior Reading
 
--- a/content/blog/2015/11/beat-the-data.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2015/11/beat-the-data.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -12,7 +12,7 @@
 
 [last-week]: blog/2015/11/happy-little-words/
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## Volume Comparison
 
--- a/content/blog/2015/11/happy-little-words.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2015/11/happy-little-words.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -27,7 +27,7 @@
 [joy]: https://en.wikipedia.org/wiki/The_Joy_of_Painting
 [mondays]: http://blog.twitch.tv/2015/11/monday-night-is-bob-ross-night/
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## Scraping
 
--- a/content/blog/2015/12/ludum-dare-34.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2015/12/ludum-dare-34.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -20,7 +20,7 @@
 [Ludum Dare 34]: http://ludumdare.com/compo/
 [Django Dash]: http://djangodash.com/judging/c2/results/team/49/
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## My Game
 
--- a/content/blog/2015/12/permutation-patterns.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2015/12/permutation-patterns.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -19,7 +19,7 @@
 
 [book]: http://www.amazon.com/dp/1439850518/?tag=stelos-20
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## Permutations (Non-Mathy)
 
--- a/content/blog/2016/02/midpoint-displacement.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2016/02/midpoint-displacement.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -27,7 +27,7 @@
 [project]: https://www.youtube.com/watch?v=G5u79w4qiAA
 [Unity]: http://unity3d.com/
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## Terrain Generation
 
--- a/content/blog/2016/03/recursive-midpoint-displacement.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2016/03/recursive-midpoint-displacement.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -24,7 +24,7 @@
 
 [mpd]: /blog/2016/02/midpoint-displacement/
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## Multi-Dimensional Arrays
 
--- a/content/blog/2016/06/diamond-square.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2016/06/diamond-square.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -37,7 +37,7 @@
 [Diamond Square]: https://en.wikipedia.org/wiki/Diamond-square_algorithm
 [owl]: https://i.imgur.com/RadSf.jpg
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## Overview
 
--- a/content/blog/2016/06/symbolic-computation.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2016/06/symbolic-computation.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -37,7 +37,7 @@
 
 [gentle]: http://www.amazon.com/dp/0486498204/?tag=stelos-20
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## Disclaimer
 
--- a/content/blog/2016/08/lisp-jam-postmortem.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2016/08/lisp-jam-postmortem.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -35,8 +35,7 @@
 [Silt]: http://bitbucket.org/sjl/silt/
 [Silt 2]: http://bitbucket.org/sjl/silt2/
 
-{{% toc %}}
-
+<div id="toc"></div>
 
 ## Development
 
--- a/content/blog/2016/09/iterate-averaging.markdown	Mon Oct 10 11:15:31 2016 +0000
+++ b/content/blog/2016/09/iterate-averaging.markdown	Mon Oct 10 14:26:27 2016 +0000
@@ -27,7 +27,7 @@
 [iterate]: https://common-lisp.net/project/iterate/
 [lol]: /media/images/blog/2016/09/loop-macro.jpg
 
-{{% toc %}}
+<div id="toc"></div>
 
 ## End Result
 
--- a/layouts/shortcodes/toc.html	Mon Oct 10 11:15:31 2016 +0000
+++ b/layouts/shortcodes/toc.html	Mon Oct 10 14:26:27 2016 +0000
@@ -1,1 +1,4 @@
+hi
 {{ .Page.TableOfContents }}
+bye
+{{ .TableOfContents }}
--- a/static/media/css/sjl.css	Mon Oct 10 11:15:31 2016 +0000
+++ b/static/media/css/sjl.css	Mon Oct 10 14:26:27 2016 +0000
@@ -321,6 +321,9 @@
 #leaf-content table tr td {
   border: 1px solid #666;
 }
+#leaf-toc {
+  display: none;
+}
 .print-links {
   display: none;
 }
--- a/static/media/css/sjl.less	Mon Oct 10 11:15:31 2016 +0000
+++ b/static/media/css/sjl.less	Mon Oct 10 14:26:27 2016 +0000
@@ -324,6 +324,9 @@
         }
     }
 }
+#leaf-toc {
+    display: none;
+}
 
 .print-links {
     display: none;
--- a/static/media/js/sjl.js	Mon Oct 10 11:15:31 2016 +0000
+++ b/static/media/js/sjl.js	Mon Oct 10 14:26:27 2016 +0000
@@ -53,4 +53,11 @@
             place_scrolly_header();
         });
     }
+    if ($('#leaf-toc').length) {
+        // hugo's toc support is fucked so we need to move shit around by hand
+        // computers are garbage
+        if ($('#toc').length) {
+            $('#toc').html($('#leaf-toc').html());
+        }
+    }
 });
--- a/themes/stevelosh/layouts/blog/single.html	Mon Oct 10 11:15:31 2016 +0000
+++ b/themes/stevelosh/layouts/blog/single.html	Mon Oct 10 14:26:27 2016 +0000
@@ -15,6 +15,10 @@
         </p>
     </div>
 
+    <div id="leaf-toc">
+        {{ .TableOfContents }}
+    </div>
+
     <div id="leaf-content" class="">
         {{ .Content }}
     </div>