How to get icons or images from URLs (instead of local files)? #888
Replies: 4 comments 1 reply
-
yeah. this is something I think would be useful as well... However.... Would you expect hugo to just include img src tags? cause that can be problematic for pageload times... especially for latent assets used as thematic elements... now, if you're simply saying 'I'd like to only have ONE copy of insert-image-name-here in my amalgamated static site blob... rather than a copy of it in every page bundle I want a background for.... I can completely get behind this preference. |
Beta Was this translation helpful? Give feedback.
-
Hello @jamesbraza and @wolfspyre - is this reflected in a ticket already? From the top of my head - I think there are several requests for this feature but I am not sure it's within the theme scope VS Hugo's scope |
Beta Was this translation helpful? Give feedback.
-
I'd think the latter option would be theme-scoped:
I'd think that would essentially just be a mechanism to use a file stored in Where this would also be additionally useful is for normal md files within a pagebundle that one would want a background on... as currently that's not possible unless I'm mistaken? $.02 @nunocoracao ? |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? I need something to use the same URL for posts that don't have a featured image, this will avoid duplicating similar images for posts without thumbn. |
Beta Was this translation helpful? Give feedback.
-
I am trying to avoid copying a bunch of images to my website's file system for things like:
assets/icons/
featured.png
Remote URLs is already possible for
figure
shortcode becausesrc
also supports URLs.Are there any ways to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions