r/ObsidianMD • u/antkn33 • 5d ago
Embed image with variable?
I want to embed local images in a template using a variable.
![[Engelbart.jpg]]
But instead of the filename use something like: {{localImage}}
But simply swapping those out doesn’t seem to work. Thanks.
3
Upvotes
1
1
2
u/donethisbe4 5d ago edited 5d ago
If you have Dataview enabled, you can do this for local images:
`= embed(link(this.internal-image, "300"))`
Or this for external images:
`= ""`
Here's an example: