Releases: ldeso/hugo-flex
v1.5.1
Hugo Flex v1.5.1
This release backports several fixes and improvements to the RSS feed template from the default template embedded in Hugo:
- Fix incorrect LastBuildDate (gohugoio/hugo@f281ef8 & gohugoio/hugo@87bf2b9)
- Add transform.XMLEscape template function (gohugoio/hugo@b4c5df4)
- Use .Language.LanguageCode in built-in templates (gohugoio/hugo@ff77a92)
- Do not include the Hugo version in RSS feeds (gohugoio/hugo@10a8448)
Bug Fixes
- Fix incorrect lastBuildDate in RSS feeds c5d7fb1
- Remove disallowed XML characters in RSS feeds 37b99bc
Improvements
- Use .Language.LanguageCode in RSS feeds 8e64e02
- Do not include the Hugo version in RSS feeds eaf1587
Notes
v1.5.0
Hugo Flex v1.5.0
This release hides the date on special pages by default. A new feature allows overriding the default behavior on specific pages by setting the showdate
parameter in their front matter. For example, the date can be hidden on an "About" page by setting its front matter as follows:
+++
title = "About"
date = 2006-01-02
[params]
showdate = false
+++
New Feature
- Hide date on special pages by default 3e5d1d0
v1.4.1
Hugo Flex v1.4.1
This release sets the default languageCode region subtag to uppercase like in gohugoio/hugo@a95fe50.
Bug Fix
- Fix default languageCode region subtag 87997c6
Note
- Update KaTeX version in README.md 3640b40
v1.4.0
Hugo Flex v1.4.0
This release introduces a new feature making the theme strictly adhere to the latest version of the HTML5 specification: now, articles are always rendered with h2
as their top heading level when they are seen from the home page, and h1
as their top heading level when they are seen on their own page. See issue #39 for more details.
Starting from this release, it is now also possible to render maths without setting "renderer.unsafe=true" in the website configuration.
New Feature
Enhancements
Bug Fix
Note
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 >}}