halogenica / beautifulhugo

Theme for the Hugo static website generator
Other
1.15k stars 610 forks source link

i18n Posted on fails on new hugo versions #379

Open huima opened 3 years ago

huima commented 3 years ago

As described in this blog: https://sisto.blog/post/2020-12-18-hugo-date-fix/

Just installed new hugo ( hugo-0.80.0 ) and started to see errors:

WARN 2021/02/06 11:14:23 Failed to get translated string for language "en" and ID "postedOnDate": template: :1:13: executing "" at <.Count>: can't evaluate field Count in type string

RoneoOrg commented 3 years ago

Hi,

this should be fixed in the last version of Beautifulhugo.

See here for reference: https://github.com/halogenica/beautifulhugo/pull/361

huima commented 3 years ago

Right, I forgot to do update to remote submodule after init.

Somehow the init did not give the latest version - though I just cloned the repo.

git submodule update --remote

So solved now. Thanks!