labra / labra.github.io

Labra's home page
MIT License
0 stars 2 forks source link

Update/migrate from hugo-academic #2

Open labra opened 1 year ago

labra commented 1 year ago

The website has been generated with an old version of an hugo theme called hugo-acedemic which has moved to something called: Wowchemy. The original author explains how to create a web site with it here.

I started to work on the migration but obtained several errors like:

ERROR 2023/01/15 11:46:11 render of "page" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221127215619-58b270a3e103/layouts/_default/baseof.html:7:3": execute of template failed: template: _default/single.html:7:3: executing "_default/single.html" at <partial "site_head" .>: error calling partial: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221127215619-58b270a3e103/layouts/partials/site_head.html:191:5": execute of template failed: template: partials/site_head.html:191:5: executing "partials/site_head.html" at <partial "wowchemy_seo" .>: error calling partial: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-seo@v0.1.0/layouts/partials/wowchemy_seo.html:6:3": execute of template failed: template: partials/wowchemy_seo.html:6:3: executing "partials/wowchemy_seo.html" at <partial "seo_tags" .>: error calling partial: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-seo@v0.1.0/layouts/partials/seo_tags.html:61:22": execute of template failed: template: partials/seo_tags.html:61:22: executing "partials/seo_tags.html" at <partial "functions/get_featured_image.html" .>: error calling partial: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-core@v0.1.0/layouts/partials/functions/get_featured_image.html:16:25": execute of template failed: template: partials/functions/get_featured_image.html:16:25: executing "partials/functions/get_featured_image.html" at <.Params.image.filename>: can't evaluate field filename in type string

Given that for my website I don't require a lot of complexity I wonder if I should continue trying to update to a more recent hugo-academic theme or try to migrate to a different hugo theme...or even find some alternative.

For other hugo themes, I found some recommendations on hugo-apero. There are some blogs describing the transition like this one

I was looking also to bep.is which I think is a no-theme based hugo page that I could use as a starting point.

One concern is that I wouldn't like to depend too much on varying themes in the future to avoid repeating what happened with hugo-academic...

labra commented 1 year ago

Some sites that still use academic and have some customizations:

labra commented 1 year ago

If I move towards Rust, I may be more interested to use Zola and this Kodama theme

labra commented 1 year ago

An alternative to zola in python: https://github.com/wigging/genja