Help for my blog

Hi,

I am happy with my not very active little blog: Mon blog | Home

I self host my blog at home on a Raspberry Pi.

I have been using a modified Archie theme GitHub - athul/archie: A minimal Hugo Theme for the last 2 years I think, and today I decided to write a new post.

However when I tried hugo server I had this error:

hugo server
ERROR deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in Hugo 0.141.0. Use pagination.pagerSize instead.
Watching for changes in /home/arnauld/Default Folder/sites/archie/{archetypes,assets,content,data,layouts,static,themes}
Watching for config changes in /home/arnauld/Default Folder/sites/archie/config.toml
Start building sites … 
hugo v0.140.2-aae02ca612a02e085c08366a9c9279f4abb39d94+extended linux/amd64 BuildDate=2024-12-30T15:01:53Z VendorInfo=snap:0.140.2

WARN  Raw HTML omitted while rendering "/home/arnauld/Default Folder/sites/archie/content/about.md"; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe
You can suppress this warning by adding the following to your site configuration:
ignoreLogs = ['warning-goldmark-raw-html']
ERROR render of "/home/arnauld/Default Folder/sites/archie/content/about.md" failed: "/home/arnauld/Default Folder/sites/archie/themes/archie/layouts/_default/baseof.html:8:12": execute of template failed: template: _default/single.html:8:12: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: execute of template failed: html/template:partials/footer.html:13:12: no such template "_internal/google_analytics_async.html"
ERROR render of "/home/arnauld/Default Folder/sites/archie/content/posts/ballade-a-moto-fujian.md" failed: "/home/arnauld/Default Folder/sites/archie/themes/archie/layouts/_default/baseof.html:8:12": execute of template failed: template: _default/single.html:8:12: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: execute of template failed: html/template:partials/footer.html:13:12: no such template "_internal/google_analytics_async.html"
ERROR render of "/home/arnauld/Default Folder/sites/archie/content/posts/album-photo-wuhan.md" failed: "/home/arnauld/Default Folder/sites/archie/themes/archie/layouts/_default/single.html:22:6": execute of template failed: template: _default/single.html:22:6: executing "main" at <.Content>: error calling Content: "/home/arnauld/Default Folder/sites/archie/content/posts/album-photo-wuhan.md:1:1": "/home/arnauld/Default Folder/sites/archie/themes/archie/layouts/_default/_markup/render-image.html:37:13": execute of template failed: template: _default/_markup/render-image.html:37:13: executing "_default/_markup/render-image.html" at <imageConfig (add "/static" (.Destination | safeURL))>: error calling imageConfig: image: unknown format
ERROR render of "/home/arnauld/Default Folder/sites/archie/content/posts/campagne-guangxi.md" failed: "/home/arnauld/Default Folder/sites/archie/themes/archie/layouts/_default/single.html:22:6": execute of template failed: template: _default/single.html:22:6: executing "main" at <.Content>: error calling Content: "/home/arnauld/Default Folder/sites/archie/content/posts/campagne-guangxi.md:1:1": "/home/arnauld/Default Folder/sites/archie/themes/archie/layouts/_default/_markup/render-image.html:37:13": execute of template failed: template: _default/_markup/render-image.html:37:13: executing "_default/_markup/render-image.html" at <imageConfig (add "/static" (.Destination | safeURL))>: error calling imageConfig: image: unknown format
Built in 1165 ms
Error: error building site: render: failed to render pages: render of "/categories" failed: "/home/arnauld/Default Folder/sites/archie/themes/archie/layouts/_default/baseof.html:8:12": execute of template failed: template: _default/terms.html:8:12: executing "_default/terms.html" at <partial "footer.html" .>: error calling partial: execute of template failed: html/template:partials/footer.html:13:12: no such template "_internal/google_analytics_async.html"

Could you help me going back to the right path? I am not a techy person…

I am using Hugo (Snap) 0.140.2 on a Linux laptop.

Thank you.

your old blog was published with hugo 0.121.2

some breaking changes have been done since the snap versien you use.

two options:

  • donwgrade the version on your laptop to 121.2

  • migrate blog and theme to 140

    if you are lucky updating the archie theme mighg work reapplying your changes.

    if not u will have to migrate manually

    for the analytics you will find lots of topics here. also raw html omitted warning is handled in topics

    for the image i guess we would need your sources .

if you go with 140.1 your source repo will help to dig in

these error are coming up because the theme uses some deprecated features in Hugo. either downgrade the hugo version or fix the issues.

its better to raise a issue with the theme developer to make sure that its done the right way. For now you can fix these issue by:

  • replace paginate with pagination.pagerSize in your config file
  • make sure these file exist:
  1. _internal/google_analytics_async.html
  2. layouts/_default/_markup/render-image.html

these files are supposed to be a part of the theme but seem to be missing.

there is a warning as well which you can ignore by adding this to the config file:

ignoreLogs = ['warning-goldmark-raw-html']