lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
651 stars 363 forks source link

Got some errors in the last 2 versions (about after february'22) #362

Closed drainuzzo closed 2 years ago

drainuzzo commented 2 years ago

Describe the bug From a couple of updates ago I got this error when starting Hugo from my local Windows:

Complete message is:

Start building sites …
hugo v0.99.1-d524067382e60ce2a2248c3133a1b3af206b6ef1 windows/amd64 BuildDate=2022-05-18T11:18:14Z VendorInfo=gohugoio
WARN 2022/05/23 12:07:56 The "twitter_simple" shortcode will soon require two named parameters: user and id. See "<localsitepath>\content\post\rich-cont18:14Z VendorInfo=gohugoioent.md:26:1" 
Error: Error building site: failed to render pages: render of "page" failed: 
"<localsitepath>\themes\anatole\layouts\_default\baseof.html:8:6": executing "_default/single.html" at  _default/single.html:8:6: ex
<partial "head.html" .>: error calling partial: execute of template failed: template: _inter template failed: template: _internal/opengraph.html:37:17: executing "_internal/opengraph.html" at <index $siteSeries ($name | urlize)>: error calling index: index of untyped nil
Built in 199 ms

To Reproduce Steps to reproduce the behavior:

  1. Updated local Anatole repo from vscode terminal
  2. Started hugo server -D
  3. Got errors

Expected behavior Hugo local server stared without errors

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

lxndrblz commented 2 years ago

The error appears to be caused by the integration of opengraph.

Would you mind adding series = "series" to your taxonomy section as shown here?

https://github.com/lxndrblz/anatole/wiki/%F0%9F%93%84-Content-Settings#post-series

For further reading see: https://github.com/lxndrblz/anatole/pull/327