image tag in sources.yaml (local path) #242
-
Hi there - I wanted to try to take more direct use of the image tag in sources.yaml where rather than specific an external link as a thumbnail I instead refer to a local path which contains an image that I'd use e.g., functionality that works with projects.yaml:
this would be useful if, say, we created cover art but then didn't get the cover but I still would like to use the representative image and uploaded this (or another thumbnail on the repo) I tried to do that the intuitive way within sources.yaml (i.e., the above) but that didn't work I did get the substantially uglier version of this to work by using the external link hosted at the website github page directly, e.g.
that works (see https://voightlab.com/publications/, citation "Genetic drivers of heterogeneity in type 2 diabetes pathophysiology) but .... you know. Brutal on the back end! Thought maybe I was using the wrong syntax though, so posting for insight. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This should actually work, this was always intended functionality in the template, so something is wrong here. I'm unable to reproduce the error locally. Are you sure the image path was correct and that the image existed? And that the |
Beta Was this translation helpful? Give feedback.
-
yeah sure thing In my repo:
you can check out my
As a mock up, you can see that very first reference/citation: includes the tag
I copied the path directly from the github site which is here https://github.com/bvoightlab/bvoightlab.github.io/tree/main/images/covers so I think the file is on the repo, the pathway is correct but if you head to: https://voightlab.com/publications/ and scroll down, you don't see the thumbnail attached to that very first citation so there's something non-obvious to me that I'm not doing right that maybe you can see! Best, |
Beta Was this translation helpful? Give feedback.
Well I have bad news... I cloned your repo exactly how it is, and could not replicate the error you're seeing. I even pushed it to github and let it build on github actions:
https://vincerubinetti.github.io/publications#2024
https://github.com/vincerubinetti/vincerubinetti.github.io/actions
So, exact same code, exact same runtime environments, yet somehow in your repo a
src
is mysteriously missing. Maybe try clearing your ruby cache on github actions?In the
build-site.yaml
workflow, you could insert this debugging step somewhere and ssh right into the github actions environment while it's running, and try to determine why thatsrc
is blank when building...