Skip to content

Releases: ldeso/hugo-flex

v1.5.1

21 Nov 11:48
Compare
Choose a tag to compare

Hugo Flex v1.5.1

This release backports several fixes and improvements to the RSS feed template from the default template embedded in Hugo:

Diff from v1.5.0

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

  • Bump verified Hugo versions in README.md 5ed17d5
  • Write the rel attribute after href 95829e0

v1.5.0

14 Nov 10:10
Compare
Choose a tag to compare

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
+++

Diff from v1.4.1

New Feature

  • Hide date on special pages by default 3e5d1d0

v1.4.1

13 Nov 14:32
Compare
Choose a tag to compare

Hugo Flex v1.4.1

This release sets the default languageCode region subtag to uppercase like in gohugoio/hugo@a95fe50.

Diff from v1.4.0

Bug Fix

  • Fix default languageCode region subtag 87997c6

Note

  • Update KaTeX version in README.md 3640b40

v1.4.0

13 Nov 10:29
Compare
Choose a tag to compare

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.

Diff from v1.3.0

New Feature

  • Fix multiple h1 elements on home page (#39) e14b01d

Enhancements

  • Use math shortcode without renderer.unsafe=true fef2d57
  • Update default KaTeX version 97b0c2f

Bug Fix

  • Replace .Page.Scratch with .Page.Store (#42) 59112ab

Note

  • Bump verified Hugo versions in README.md 5e85daf
  • Use $noop variable instead of with 61dff87

v1.3.0

16 Aug 11:53
Compare
Choose a tag to compare

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

v1.2.2

01 Jul 05:40
Compare
Choose a tag to compare

Hugo Flex v1.2.2

This release fixes a bug introduced in v1.2.1 where the fingerprint of the resource base.css was missing in the XML file used to format RSS pages, resulting in XML parsing errors.

Diff from v1.2.1

Bug Fix

  • Fix missing base.css integrity in RSS pages 4e62467

v1.2.1

29 Jun 12:09
Compare
Choose a tag to compare

Hugo Flex v1.2.1

This release fixes a bug introduced in v1.1.0 where base resources such as base.css would be minified and fingerprinted twice, resulting in very long file names (#38).

Diff from v1.2.0

Bug Fix

  • Fix redundant processing of base resources (#38) 2884c07

Notes

  • Use Apache License without modification a35020f
  • Update tested Hugo versions in README.md 1f6276f

v1.2.0

24 Apr 12:05
Compare
Choose a tag to compare

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.

Diff from v1.1.0

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

  • Show content from _index.md on homepage (#37) 0711642

Notes

  • Use direct link to licence in README.md 06a0093
  • Simplify code in render-heading.html e6d3b5d
  • Update tested Hugo versions in README.md 3c392eb

v1.1.0

19 Jan 10:35
Compare
Choose a tag to compare

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.

Diff from v1.0.4

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

  • Use direct link to license in theme.toml 71968c8
  • Rename variable $taxonomy to $term 33333eb
  • Use a horizontal bar as the default divider ede5fb7

v1.0.4

08 Jan 10:45
Compare
Choose a tag to compare

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:

  1. 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 %}}
  2. 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 >}}

Diff from v1.0.3

Bug Fix

  • Allow calling math shortcode with markdown (#36) 1c11add
  • Update math rendering example 46899dc

Notes

  • Add pointer cursor to Soundcloud button df0662c
  • Update README.md 16a8dac