How This is Made

Build Status

This blog is statically generated using Jekyll. It is written in Markdown and converted into HTML by a pandoc plugin which can display math using MathJax. The code deployment to Github is done automatically by Travis-CI and rake.

The main source code for this blog was forked from Xiaodong Qi’s Git repository, which in turns was modified from Carl Boettiger’s and David Ketcheson’s websites. Sukhumvit Thai font is implemented using the source code forked from Tulakan Ruangrong and Titipat Achakulvisut’s Git repository. The instruction to install dependencies and modify the source code can be found on Xiaodong Qi’s website. Please feel free to fork it for your own use. On Windows, you can follow the instruction here to install Ruby and Jekyll. I have not been able to install the GSL on Windows and, as a result, can’t compile the blog locally on my computer. But I will leave the trouble of dealing with that for the future.

I use popup footnotes to improve readability, using Bigfoot and Benjamin Esham’s code to enable MathJax in footnotes. All you have to do is pasting the css into /assets/css/style.css, putting the javascript file to, say, /assets/js and calling it with

<script type="text/javascript" src="/assets/js/bigfoot.js"></script>
<script type="text/javascript">
    $.bigfoot({
        activateCallback: function($popover, $button) {
                if (MathJax && !$button.data('mathjax-processed')) {
                        var content_wrapper = $popover.find('.bigfoot-footnote__content')[0];
                        MathJax.Hub.Queue(['Typeset', MathJax.Hub, content_wrapper]);
                        MathJax.Hub.Queue(function () {
                                $button.attr('data-bigfoot-footnote', content_wrapper.innerHTML);
                                $button.data('mathjax-processed', true);
                        });
                }
        }
    });
</script>

within /_includes/javascript.html.