Is there a way to rename attachments & their links when publishing? #341
Unanswered
fr3fou
asked this question in
Q&A — Plugin
Replies: 1 comment 12 replies
-
There are a lot of possible settings around path. You can override attachment path in the embed, but also change the slugify settings in the second tab (content or path I forgot the name) |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have image attachments which have spaces in the name and I'd like to rename those to use a dash (and respectively rename the links to them as well_). Is that possible?
I know I can do the latter using a content regex replacer but I'm not sure if I can rename the attachments themselves.
The reason why I need this is because Astro / other Markdown tools don't properly support attachments with spaces in them. Replacing the spaces with
%20
in order to URL encode them also doesn't work.Was also wondering if there's a recommended way to remove the
|500
from the end. Regex replacement does seem like the most universal solution to a lot of stuff but it in my opinion it's clunky to use it for this.Beta Was this translation helpful? Give feedback.
All reactions