Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backlinks preview similar to little-ocean theme #7

Open
PhilB-RLB opened this issue Feb 21, 2024 · 2 comments
Open

Backlinks preview similar to little-ocean theme #7

PhilB-RLB opened this issue Feb 21, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@PhilB-RLB
Copy link

Hello,

first I would like to thank you for this wonderful Amethyst Theme.

Nevertheless, I think that the little-ocean theme (https://github.com/justindsmith/little-ocean) offer better backlink preview. Please, see this page : https://little-ocean.netlify.app/list-of-characters/ and see the preview of the "Luke Skywalker" link. You'll see that text and image are displayed. I don't think this is the case for Amethyst backlinks preview.

Unfortunately, I don't have the skill to try to implement the necessary code (html layout, css and js script) to obtain the same result with Amethyst. Could you examine the little-ocean code in order to see if it's possible to reproduce the backlink preview in Amethyst. Also please notice that the little-ocean theme doesn't need to run any external tool (i.e. hugo-obsidian) in order to generate backlinks and I wonder how this is done.. (Of course I understand that hugo-obsidian is mandatory in order to generate the knowledge graph beautifully displayed by Amethyst.

Thank you in advance for your help on this topic.

Phil.B

@PhilB-RLB PhilB-RLB added the enhancement New feature or request label Feb 21, 2024
@64bitpandas
Copy link
Owner

64bitpandas commented Apr 30, 2024

Hi, apologies for the delayed response.

I'm not too familiar with the little-ocean theme, but from what I can gather the backlink styling is entirely included in this .scss file, and the html is in this file.

You should be able to copy-paste the .scss styling into this file and replace the backlink code in this file with the little-ocean one. Let me know how it goes!

(Also, it seems like they're using a for loop over the built-in hugo Page object to generate the backlinks, which is totally possible to do in Amethyst as well. It's just that hugo-obsidian is still necessary for the graphs as you mentioned, so it made sense to use it for backlinks as well.)

@PhilB-RLB
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants