Skip to content

slotThe/slotThe.github.io

Repository files navigation

Tony's Website

Odds and ends—hopefully at least some interesting blog posts!

The base setup is based on duplone.github.io, see BSD-3. Further—less direct—inspirations include gwern.net and Practical Typography.

Notable Features

For various definitions of "notable".

  • Sidenotes with the help of Tufte CSS. Unlike most implementations, SideNotesHTML.hs on my fork1 of the pandoc-sidenote library supports arbitrary blocks to be placed inside of sidenotes.

  • In comparison to pandoc's default, better syntax highlighting via the pygmentize command line utility.

  • All LaTeX output is pregenerated with mathjax-node-page and directly embedded in the HTML. This is both faster when loading the page, and does not require any JavaScript on the client side.

  • Automatic smallcaps for certain abbreviations, like HTML or GNU. As such, a font that actually supports this (instead of rescaling capital letters) is also provided.

  • Section marks when hovering over a heading, linking to the respective section.

  • Citation handling with BibTeX.

Build

Because building got more complicated, there is build.sh, which make or make build calls. Most notably, this script—with the help of mathjax-node-page—it pre-generates all mathematics. This also means that one needs to clone this repository recursively, as math-node-page is included as a submodule.

For speed reasons, make watch disregards this, so be sure to build the website with make to see the final result.

Footnotes

  1. The pull request is currently pending.