Releases: ldeso/hugo-flex
v1.3.0
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
.
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
v1.2.2
v1.2.1
v1.2.0
Hugo Flex v1.2.0
This release slightly modifies the HTML outline to be more respectful of the HTML5 specification, and adds support for automatic rendering of mathematical formulas using the passthrough extension introduced in Hugo 0.122.0. This means that when the math
parameter is set to true
, it is no longer necessary to enclose mathematical formulas in a shortcode to render them. It is still possible to use the built-in math
shortcode for backwards compatibility.
New Feature
- Add math rendering without shortcodes 89477a1
Enhancements
- Update default KaTeX version 14b3e64
- Revert "Use site title as h1 that was missing from outline" c145005
- Use h1 for page titles and article titles 1d36d8e
- Do not use redundant article element b5b468a
Bug Fix
Notes
v1.1.0
Hugo Flex v1.1.0
This release brings a couple of new features to the theme inspired from the default site example that is obtained by running the commands hugo new site
and hugo new theme
. The theme can now also be installed as a Hugo Module.
New Features
- Do not minify/fingerprint assets in development 843c484
- Provide a full "hugo.yaml" configuration example 2daadb7
Enhancement
- Use time.Format function instead of .Format method 01ad7fd
Bug Fix
- Only prevent repeated title on home page 2a2e0d0
Notes
v1.0.4
Hugo Flex v1.0.4
This release fixes the problem that the markdown contained by the math
shortcode could not be rendered (#36).
It is now possible to call the math
shortcode:
-
Either with
%
as the outermost delimiter so that the shortcode's inner content will be fully rendered when sent to the content renderer:{{% math %}} Here is [a link](https://github.com/ldeso/hugo-flex). By the way, $1 + 1 = 2$. {{% /math %}}
-
Or with the
<
character, to indicate that the shortcode's content does not need further rendering (this was already possible prior to this release and does not change):{{< math >}} <p> Here is <a href="https://github.com/ldeso/hugo-flex">a link</a>. By the way, $1 + 1 = 2$. </p> {{< /math >}}
Bug Fix
Notes
v1.0.3
Hugo Flex v1.0.3
This release allows using the pageRef
property for menu entries that reference internal pages in other formats than HTML, such as RSS feeds. This is noted as a bug fix because, as stated in issue #31, the pageRef
property is required for menu entries pointing to internal pages of the website.
Bug Fixes
- Allow pageRef with outputFormat for internal links 0b8cacc
- Remove title in link to alternative output format 06fc6d1
Notes
- Use same code as link.html in rss.xml 5e07650
v1.0.2
Hugo Flex v1.0.2
This release fixes a small problem in recent mobile browsers, where pages that didn't have a lot of content were nevertheless too large to fit the viewport height and required the user to scroll to see the footer.
Bug Fix
v1.0.1
Hugo Flex v1.0.1
This release fixes an inconsistency when the site is displayed in Chrome for Android and enhances the SoundCloud player shortcode.