eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Allow using only a `fileSlug` in `inputpath-to-url`, in addition to full path

Open nhoizey opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

https://www.11ty.dev/docs/plugins/inputpath-to-url/ is a great addition to Eleventy features.

Would it be possible to enhance it to be able to use only the fileSlug in the link, instead of the full path, if we are sure there’s only one such fileSlug?

That's what this plugin provides: https://github.com/nhoizey/eleventy-plugin-link_to

Describe alternatives you've considered

No response

Additional context

No response

nhoizey avatar Jan 11 '24 16:01 nhoizey