Anatole: Error in build after theme update

Created on 23 Nov 2020  ·  5Comments  ·  Source: lxndrblz/anatole

I get the following after I tried to update the theme:

PS F:\workspace\web\mattarnster.co.uk> hugo serve
Start building sites … 
ERROR 2020/11/23 15:53:25 render of "taxonomy" failed: execute of template failed: template: _default/list.html:3:4: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "F:\workspace\web\mattarnster.co.uk\themes\anatole\layouts\partials\head.html:22:33": execute of template failed: template: partials/head.html:22:33: executing "partials/head.html" at <fingerprint>: error calling fingerprint: <nil> can not be transformed
ERROR 2020/11/23 15:53:25 render of "page" failed: execute of template failed: template: _default/single.html:3:4: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "F:\workspace\web\mattarnster.co.uk\themes\anatole\layouts\partials\head.html:22:33": execute of template failed: template: partials/head.html:22:33: executing "partials/head.html" at <fingerprint>: error calling fingerprint: <nil> can not be transformed
ERROR 2020/11/23 15:53:25 render of "taxonomy" failed: execute of template failed: template: _default/list.html:3:4: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "F:\workspace\web\mattarnster.co.uk\themes\anatole\layouts\partials\head.html:22:33": execute of template failed: template: partials/head.html:22:33: executing "partials/head.html" at <fingerprint>: error calling fingerprint: <nil> can not be transformed
ERROR 2020/11/23 15:53:25 render of "term" failed: execute of template failed: template: _default/list.html:3:4: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "F:\workspace\web\mattarnster.co.uk\themes\anatole\layouts\partials\head.html:22:33": execute of 
template failed: template: partials/head.html:22:33: executing "partials/head.html" at <fingerprint>: error calling fingerprint: <nil> can not be 
transformed
Built in 31 ms
Error: Error building site: failed to render pages: render of "section" failed: execute of template failed: template: _default/list.html:3:4: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "F:\workspace\web\mattarnster.co.uk\themes\anatole\layouts\partials\head.html:22:33": execute of template failed: template: partials/head.html:22:33: executing "partials/head.html" at <fingerprint>: error calling fingerprint: <nil> can not be transformed

Can you see what's going wrong at all? I did the update the recommended way, as defined within the readme for the theme.

help wanted

All 5 comments

Found the issue... It wasn't liking my customCSS declaration in config.toml.

I had:

customCss = ["css/custom.css"]

Removing that fixes it, but I'd be interested in knowing why it's not working.

I've just cloned your repository and have been able to reproduce the error. I'll have a look. Possibly it's even related to the other open issue, that we have. #64

@mattarnster Your custom css now goes in the assets/css directory and no longer in the static/css directory. This was caused by a change how the Hugo gets these resources. Simply create a new assets folder and move over the css directory. You might need to stop and restart the hugo server while doing this.

As a little heads up: Since the recent updates the font awesome prefixes have changed too. In your config.toml, you'll have to prefix them now like this:

[[params.socialIcons]]
icon = "fab fa-github"
title = "GitHub"
url = "https://github.com/mattarnster"

[[params.socialIcons]]
icon = "fab fa-twitter"
title = "Twitter"
url = "https://twitter.com/mattarnster"

[[params.socialIcons]]
icon = "fas fa-envelope"
title = "Email"
url = "mailto:[email protected]"

Awesome, thanks for looking into that for me.

Much appreciated!

On Mon, Nov 23, 2020 at 4:34 PM Alexander Bilz notifications@github.com
wrote:

@mattarnster https://github.com/mattarnster Your custom css now goes in
the assets/css directory and no longer in the static/css directory. This
was caused by a change how the Hugo gets these resources.

As a little heads up: Since the recent updates the font awesome prefixes
have changed. In your config.toml, you'll have to prefix them now like this:

[[params.socialIcons]]
icon = "fab fa-github"
title = "GitHub"
url = "https://github.com/mattarnster"

[[params.socialIcons]]
icon = "fab fa-twitter"
title = "Twitter"
url = "https://twitter.com/mattarnster"

[[params.socialIcons]]
icon = "fas fa-envelope"
title = "Email"
url = "mailto:[email protected]"


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
https://github.com/lxndrblz/anatole/issues/91#issuecomment-732439610,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABOPYZYRSY35TZGJBGEKGP3SRLIMNANCNFSM4T77XFKA
.

@mattarnster No problem. I'll go ahead and close this issue. Feel free to reopen it if you have any further issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sptandi picture Sptandi  ·  4Comments

msfjarvis picture msfjarvis  ·  3Comments

PiotrWachulec picture PiotrWachulec  ·  6Comments

GhostBasenji picture GhostBasenji  ·  5Comments

abraithwaite picture abraithwaite  ·  4Comments