Skip to content

v1.3.0

Compare
Choose a tag to compare
@ldeso ldeso released this 16 Aug 11:53
· 15 commits to master since this release

Hugo Flex v1.3.0

This release completely removes client-side math rendering and replaces it with server-side math rendering, a new feature of Hugo v0.132.0. It is now possible to use this theme to build a mathematical blog without javascript!

This introduces a breaking change: the math shortcode must not include delimiters anymore, i.e. this:

{{% math %}}
Inline formulas such as $y=ax+b$ are supported, displayed formulas as well:
$$e^{i\pi}+1=0$$
{{% /math %}}

should be changed to:

Inline formulas such as {{< math >}}y=ax+b{{< /math >}} are supported, displayed formulas as well:
{{< math displayMode=true >}}
  e^{i\pi}+1=0
{{< /math >}}

This breaking change does not affect users that were already using the passthrough extension to render math globally. This functionality does not change, except that the old math parameter from the theme configuration/front matter does not exist anymore and is now entirely superseded by the config parameter markup.goldmark.extensions.passthrough.enable.

Diff from v1.2.2

New Feature

  • [BREAKING] Render math on the server side 704a749

Enhancements

  • Always include pubDate element in rss.xml a075eb6
  • Add hugo version to generator element in rss.xml 825012f

Note

  • Use $noop variables instead of with fb13948