hadynz / obsidian-kindle-plugin

Sync your Kindle notes and highlights directly into your Obsidian vault
MIT License
897 stars 52 forks source link

Book covers with metadata #231

Closed ceselder closed 1 year ago

ceselder commented 1 year ago

I think it would be neat to have covers for the book as metadata like in the image attached.

Could be a toggle in obsidian settings too.

Images would not need to be stored in obsidian itself since there are plenty book cover APIs.

image

ceselder commented 1 year ago

Is anyone else interested in this? Might just do it myself tommorow

hadynz commented 1 year ago

@ceselder this is something that you can easily do by modifying your notes template

image

Simply add the following:

![]({{imageUrl}})

If you want more control with the image size, then your next best bet is to use an HTML image tag <img src="{{imageUrl}}" width="200px"/>.

ceselder commented 1 year ago

Oh my bad!

jimclay75051 commented 1 year ago

I would love to have the covers.

I tried ![]({{imageUrl}}) and it did not work for me.

hadynz commented 1 year ago

@jimclay75051 what the output of that markup?

jimclay75051 commented 1 year ago

I'm quite possible not doing it correctly.

image

Basically, it doesn't do anything.

hadynz commented 1 year ago

@jimclay75051 You need to add ![]({{imageUrl}}) to your "template" and not an existing note that has already been generated.

You need to go to Kindle Highlight's settings -> Manage Template and then modify the Content template.

After that is done, you will need to regenerate your existing notes. Best way is to delete your existing notes and sync again.

If you do not want to delete your existing notes, you will need to manually add the image link yourself. You should see the book image link available in the frontmatter.

jimclay75051 commented 1 year ago

You are correct. That worked. Thank you.