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

Frontmatter: featureimage internal url #1938

Open
bitSheriff opened this issue Jan 25, 2025 · 1 comment
Open

Frontmatter: featureimage internal url #1938

bitSheriff opened this issue Jan 25, 2025 · 1 comment

Comments

@bitSheriff
Copy link

Is your feature request related to a problem? Please describe.
My problem is that the frontmatter featureimage only allows external urls. I want to set a feature image for more than one post without duplicating the .png file into every folder.

Describe the solution you'd like
it would be very nice to support internal ulrs like /assets/img/feature.png too.

Describe alternatives you've considered
I considered putting these feature images into the static directory and setting the external url to my page. BUT therefore it cannot be ported easily to another domain because the domain is hard coded in these urls.

Thank you very much

@BasilSkrnk
Copy link

BasilSkrnk commented Feb 10, 2025

I’m interested in this as well.

This solution, I’ve come up to this too.

I considered putting these feature images into the static directory and setting the external url to my page. BUT therefore it cannot be ported easily to another domain because the domain is hard coded in these urls.

Yet, for me, that does not always work. E.g. I have a couple of projects that live mostly in the local network, before the ‘stable’ version is pushed to the internet. When I add a new article with the featured image, the external link would start working only when it’s deployed world-wide. While it lives in the intranet (where we test things), it won’t appear till the article appears on the public version of the project.

Obviously, it won’t work while developing, too.

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

No branches or pull requests

2 participants