2.8 KiB
+++ disableToc = false hidden = true title = "Version 7.0" type = "releasenotes" weight = -0 +++
7.0.0 (XXXX-XX-XX)
[!secondary] {{% icon fire-flame-curved %}} The release you didn't know you want! {{% icon fire-flame-curved %}}
Hugo 0.126.0
- {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.0{{% /badge %}} This release requires a newer Hugo version.
Breaking
-
{{% badge style="warning" title=" " %}}Breaking{{% /badge %}} This release comes with significant changes in file naming of partials and how the theme works internally. This was done because the theme
- suffered from poor build performance for sites with 1000 or more pages
- reinvented the wheel instead of using available Hugo mechanisms
What do I gain, you may ask. A significant performance boost during build! Usually the build time has been cut in half. It is now possible to build even larger sites with 5000 or more pages. This was previously almost impossible due to rapidly increasing build time the more pages you've introduced. For even bigger sites, the theme now has configurable performance optimizations (at the price of feature limitations).
If you haven't done customizations to any partials, you can update right away.
If you have customized your templates, in best cases you will get build warnings or even errors. In worst cases, your build succeeds but the site will not work as intended by you.
Specifically, you will most likely have to adapt your site if you have
- overwritten the
header.html
,menu.html
orfooter.html
partials - self-defined output formats that display HTML
- defined archetype partials in
layouts/partials/archetypes
- overwritten prev/next topbar buttons
There is a separate section in the documentation covering these cases.
-
{{% badge style="warning" title=" " %}}Breaking{{% /badge %}} This release changes the way, the search index and the dedicated search page are generated. This requires reconfiguration by you to still work as you intended.
You need to remove the now obsolete
search
andsearchpage
output format from[outputs.home]
in yourhugo.toml
, resulting in something similar to{{< multiconfig file=hugo >}} [outputs] home = ["html", "rss", "print"] {{< /multiconfig >}}
After that, your build will succeed but will most likely cause new defaults to be applied. With no further settings, in-page search, search popup and dedicated search page are all active by default. This can be reconfigured.
In addition you are now able to overwrite the default file name of the search index and the default page name of the dedicated search page by changing
searchIndexURL
andsearchPageURL
respectively in yourhugo.toml
.See the updated documentation for reference.