Skip to content

v2.12.0

Latest
Compare
Choose a tag to compare
@davidsneighbour davidsneighbour released this 09 Feb 11:18
v2.12.0
8e3303d

This release fixes some messes with the social media integrations and the way main sections are evaluated. Add some refactoring and cleanup and you have a new release.

Breaking Changes

  • Module Integration: This was added in one of the previous releases, but lead to issues and misunderstandings. The way modules are handled in Golang (and GoHugo) is NOT only the path to the github repository, but also a version string, that can be left out if the major version is 0 or 1. Because this themes major version is 2 that leads to two effects.

    Using github.com/theNewDynamic/gohugo-theme-ananke in your config file will lead to GoHugo using the latest HEAD of the repository, which is not recommended. You will receive every single latest commit on update, which might and has broken the theme.

    Using github.com/theNewDynamic/gohugo-theme-ananke/v2 will lead to GoHugo using the latest release of the repository, which is recommended. You will receive only the latest release on update, which should be stable.

    If you are using the GoHugo Modules way to integrate the theme, then please update to the latter method. If you are using the submodule way... well... this is a completely different story. It's not versioned, but it also only updates on manual request (for instance via git pull && git checkout v2.10.3 inside of the theme directory).

  • Index page: the way main sections were evaluated was unclear and probably changed much from the original design in GoHugo. This has been fixed and the main sections are now evaluated in a more consistent way. This might affect what is shown on your website, so open a discussion if you see something wrong and try to explain exactly what you expected to see in sense of included posts and order of those posts.

    The old way did this: check all configured main sections (or post, if nothing is set) > range through the section and display the first n+m posts (n = number of full previews, m = number of title previews only).

    The new way does this: load all posts in the main sections > range through the collection and display the first n+m posts (n = number of full previews, m = number of title previews only).

    Basically, the old way took every single section you configured and displayed them separate, the new way takes all posts from all sections and displays them in one list. This is more consistent and should be more predictable for you as a user. It's also the way it was intended to work from the beginning according to the documentation.

  • Social Media Icons: creating new networks had to be changed to a more flexible way.

    # old way
    [[ananke.social.networks]]
    slug = "linkedin"
    ...
    
    # new way
    [ananke.social.networks.linkedin]
    slug = "linkedin"

Full Changelog: v2.11.3...v2.12.0