Error with the updating from old version to the last version
Marco5dev opened this issue · 5 comments
$ npm run dev
> jsonverse@1.3.1 dev
> exec-bin node_modules/.bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender --baseURL=http://localhost --noHTTPCache
Watching for changes in E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\{config,content,data,i18n,node_modules,package.json,static,themes}
Watching for config changes in E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\config\_default, E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\config\_default\hyas, E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\config\_default\menus
Start building sites …
hugo v0.118.2-da7983ac4b94d97d776d7c2405040de97e95c03d+extended windows/amd64 BuildDate=2023-08-31T11:23:51Z VendorInfo=gohugoio
WARN The []interface {} data from 'docs-versions.yml' overridden by higher precedence []interface {} data already in the data tree
ERROR Hugo Responsive Images:
Page resource image /versions/https://github.com/Marco5dev/jsonverse/actions/workflows/npm-publish.yml/badge.svg not found
Built in 7289 ms
Error: error building site: "E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\content\versions\_index.md:1:1": "E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\node_modules\@hyas\images\layouts\_default\_markup\render-image.html:20:6": execute of template failed: template: _default/_markup/render-image.html:20:6: executing "_default/_markup/render-image.html" at <partial "hri/private/print/render-hook" $params>: error calling partial: "E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\node_modules\@hyas\images\layouts\partials\hri\private\print\render-hook.html:20:5": execute of template failed: template: partials/hri/private/print/render-hook.html:20:5: executing "partials/hri/private/print/render-hook.html" at <partial (printf "hri/%v" .common.render_hook) .>: error calling partial: "E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\node_modules\@hyas\images\layouts\partials\hri\picture.html:1:3": execute of template failed: template: partials/hri/picture.html:1:3: executing "partials/hri/picture.html" at <partial "hri/private/image" (merge . (dict "partial" "picture"))>: error calling partial: "E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\node_modules\@hyas\images\layouts\partials\hri\private\image.html:31:21": execute of template failed: template: partials/hri/private/image.html:31:21: executing "partials/hri/private/image.html" at <partial "hri/private/params/image.html" $params>: error calling partial: "E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\node_modules\@hyas\images\layouts\partials\hri\private\params\image.html:29:14": execute of template failed: template: partials/hri/private/params/image.html:29:14: executing "partials/hri/private/params/image.html" at <partial "hri/private/params/image-general" .>: error calling partial: execute of template failed: template: partials/hri/private/params/image-general.html:316:26: executing "partials/hri/private/params/image-general.html" at <partial "img-common/private/utils/restrict-widths" (dict "ctx" $ctx "img" $.common.img "widths" (sort .) "aspect_ratio" $params.aspect_ratio "difference" $difference "suppress" $params.suppress_width_warning)>: error calling partial: "E:\coding\UnderDevelopment\jsonverse\jsonverse Documentation\node_modules\@hyas\images\layouts\partials\img-common\private\utils\restrict-widths.html:65:14": execute of template failed: template: partials/img-common/private/utils/restrict-widths.html:65:14: executing "partials/img-common/private/utils/restrict-widths.html" at <$.img.Width>: nil pointer evaluating interface {}.Width
that was the error that happened to me after installing and following every step step by step from the doks docs
the content in that file beside the taple was
[![Build](https://github.com/Marco5dev/jsonverse/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Marco5dev/jsonverse/actions/workflows/npm-publish.yml)
[![NPM Version](https://img.shields.io/npm/v/jsonverse.svg)](https://www.npmjs.com/package/jsonverse)
[![NPM Downloads](https://img.shields.io/npm/dt/jsonverse.svg)](https://www.npmjs.com/package/jsonverse)
[![Github Repo Size](https://img.shields.io/github/repo-size/Marco5dev/jsonverse.svg)](https://github.com/Marco5dev/jsonverse)
[![LICENSE](https://img.shields.io/npm/l/jsonverse.svg)](https://github.com/Marco5dev/jsonverse/blob/master/LICENSE)
[![Contributors](https://img.shields.io/github/contributors/Marco5dev/jsonverse.svg)](https://github.com/Marco5dev/jsonverse/graphs/contributors)
[![Commit](https://img.shields.io/github/last-commit/Marco5dev/jsonverse.svg)](https://github.com/Marco5dev/jsonverse/commits/master)
just some images
Remote images are not (yet) supported. Will be looking into that today — I'll get back to you
can you tell me while me waiting what is the right way to add avatar to contributors profile like the new documentation and the right way to add images in images: [] becuse i never used it and every time i try i get the same error
I'm here — only a bit (way too) busy 😆
Specify an avatar image (page resource) in the frontmatter, like so — see e.g. https://github.com/gethyas/getdoks.org/tree/main/content/contributors/henk-verlinde:
---
title: "Henk Verlinde"
description: "Creator of Doks."
summary: "Creator of Doks."
date: 2023-09-12T20:21:47+02:00
lastmod: 2023-09-12T20:21:47+02:00
draft: false
images: []
avatar: "henk-verlinde.jpg"
---
In a similar manner (also referencing a page resource), specify an image like so — see e.g. https://github.com/gethyas/getdoks.org/tree/main/content/blog/doks-1:
images: ["first-image.jpg", "second-image.png"]
The first image ("first-image.jpg") will be displayed automatically in the post. Both images will be referenced as Open Graph images (metadata, not visible).
BTW, I made some progress with the new images module this week! Super solid code base. Landscape /portrait support. Render hook with support for images from page resource, global resource, and remote resource:
Shortcodes (and partials) for img
, picture
, and figure
elements need some more stabilizing /robustness. Almost there...
A Remote resource is now supported.