shawnohare / hugo-tufte

Content centric Hugo blogging theme styled with Tufte-css
MIT License
111 stars 39 forks source link

Tufte Hugo Theme

Maintenance Warning

I do not actively maintain this theme. A fork that now also apears unmaintained can be found at https://github.com/slashformotion/hugo-tufte

Hugo-Tufte is a minimalist blog-like theme for the static site generator Hugo that attempts to be a faithful implementation of the Tufte-css project. It supports mathematical typesetting via MathJax. By utilizing copious partial templates the theme is largely customizable.

State of Project

This theme is largely unmaintained. If there is a particular fork that should be considered the primary project please submit a PR updating the README, thanks!

Math

Mathjax renders LaTeX written inside of markdown files. LaTeX can be written more or less as normal, but inline and display environments that start with \ must be escaped. Some examples:

There currently seems to be some weirdness with other environments, such as the align environment. These environments will render provided they are wrapped in <p> tags and blank lines. The snippet below should render correctly.

Let $G$ be a finite group with exponent $2$.  Then every element is
an involution, hence for any $x$, $y$ in $G$ we have:

<p>
\begin{align*}
  e &= (xy)^2  \\
  &=xyxy \implies \\
  y^{-1} &= xyx \implies \\
  y^{-1}x^{-1} &= xy,
\end{align*}
</p>

establishing that $G$ is abelian.

Site Parameters

The site specific parameters that this theme recognizes are:

Page Parameters

Shortcodes

This theme provides the following shortcodes in an attempt to completely support all the features present in the Tufte-css project.

Templates

TODO