KosmosisDire / obsidian-webpage-export

Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
https://docs.obsidianweb.net/
MIT License
812 stars 69 forks source link

Add a backlinks view to the exported documents #37

Open emdoe opened 1 year ago

emdoe commented 1 year ago

Thanks for the great plugin! I noticed that the backlinks at the bottom of the page are not hyperlinks. May I ask if this is a small bug?

KosmosisDire commented 1 year ago

Can you give me an example of what you mean by "backlinks at the bottom of the page? Maybe send a screenshot?

emdoe commented 1 year ago

SCR-20230214-kjr SCR-20230214-kma SCR-20230214-kna

KosmosisDire commented 1 year ago

I am not sure how to add backlinks to the page like you have here. Is this from a plugin or is it built in?

KosmosisDire commented 1 year ago

Or is this just a link you have added manually? If it is linking to another file then you have to export both files not just one of them.

emdoe commented 1 year ago

Hi, it's a core plugin. You can enable it from settings -> backlinks -> backlink in document. And the problem is that it's not a hyperlink, so it can't go to another page.

KosmosisDire commented 1 year ago

Hey thanks, I tried that but it doesn't seem to be the same thing as what you have:

image

Are you using an older version of obsidian maybe and this has been updated? I can definetly add support for this backlink pane, but again it doesn't seem like it's the same thing.

emdoe commented 1 year ago

Hi, thanks for the help! It's the latest version and I think the look is different because of the theme. I use the shimmering focus. But I have not tested if the problem persists for the original theme (but I guess yes?).

KosmosisDire commented 1 year ago

Ahh, okay yes it would be the theme. The problem does still occur with any theme but it's good to know that I am actually seeing the same problem as you. I'll definetly fix this, and thanks for the report! :)

KosmosisDire commented 1 year ago

An update on this issue as I received another report of it:

Unfortunately, I am not sure this fix will come super soon since those links are controlled by an internal obsidian script so it would take a decent amount of work to get them to link up properly, and there is other stuff that is higher priority.

This will be fixed eventually though.

philomorphism commented 1 year ago

Is this being solved? if not, there should not be any backlinks at the bottom of any page, right? But it seems the exporter always puts it (actually just the HTML/CSS Skeleton) at the bottom of the "most recent note" in the vault.

image

this screenshot it taken from the generated site, and this appears only on the "most recent note" as I mentioned. every time we add a new note and regenerate the stuff, this skeleton moves to the most recent note.

KosmosisDire commented 1 year ago

Yes this is just a byproduct of having backlinks on. I do plan to do work on this to make it fully work in the future.

KosmosisDire commented 1 year ago

Note for future: When a note is exported with backlinks turned on they should be removed. Instead I would prefer for the plugin to generate it's own backlinks to be embedded into the document. This should, of course, be optional and independent of obsidian's backlinks feature.

philomorphism commented 1 month ago

Hi, @KosmosisDire , any updates? what's the timeline for "future" tagged issues?

KosmosisDire commented 1 month ago

Future issues have no timeline, just that they are something I will add but are not currently worked on.

However, for this specific issue I have actually implemented this in the dev branch already! So it will be coming out in the next release :)