Closed Marco5dev closed 5 months ago
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
Hello are you there ? @h-enk
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.
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
just some images