Jieiku / abridge

Fast & Lightweight Zola Theme
https://abridge.pages.dev/
MIT License
166 stars 44 forks source link

Failed to serve and build the theme Error: Reason: Function 'get_hash' not found #126

Closed wewlad-dev closed 1 year ago

wewlad-dev commented 1 year ago

OS: Windows 10 x64 zola 0.16.1

Zola works fine and so is other themes, trying Abdridge, using the default settings on everything results in an error as follow:

Error: Failed to serve the site Error: Failed to render section '\\?\C:\Users\null\blog\content\posts\_index.md' Error: Reason: Failed to render 'posts.html': error while rendering macromacros_head::theme(error happened in 'base.html'). Error: Reason: Function 'get_hash' not found

How to solve that?

Jieiku commented 1 year ago

Upgrade Zola to latest:

https://github.com/Jieiku/abridge/blob/5c3cc8966834a0d140f82aa178ba26109f79dd8f/theme.toml#L5

This was a result of a change in Zola, where the function name changed, here is when abridge changed to match it: https://github.com/Jieiku/abridge/issues/104

If you absolutely have to you could use an older version of abridge, but I would not recommend it, better to upgrade zola.

Here are older releases: https://github.com/Jieiku/abridge/releases

You could also git clone abridge and git checkout cfe23e2d8eb9d2b198b58b4ec5464b209189418f (this commit is just before I updated abridge for Zola 17.1)

The refactor branch has a lot of really nice changes that will probably go live soon, it will also require Zola 17.1 or newer:

https://github.com/Jieiku/abridge/tree/refactor

wewlad-dev commented 1 year ago

Right, thanks for pointing my ignorance! 😁 It seems Chocolatey still didn't updated it, as I installed it a couple days ago, just upgraded Zola manually and now it works great, thanks again!