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

Make inputPathToUrl work for passthrough files #3701

Open
gmalecha opened this issue Mar 16, 2025 · 0 comments
Open

Make inputPathToUrl work for passthrough files #3701

gmalecha opened this issue Mar 16, 2025 · 0 comments

Comments

@gmalecha
Copy link

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

I would like to be able to embed links to static content from generated content, e.g. a link to a PDF file from a page that contains a summary of the PDF. To do this, I set up the PDF file as a passthrough file, but I would like to reference this path via the template. It seems like inputPathToUrl does not work for passthrough files, so there isn't really any nice option to support this.

Describe the solution you'd like

I would like {{ "foo/bar.pdf" | inputPathToUrl }} to work when foo/bar.pdf is a passthrough file.

Describe alternatives you've considered

No response

Additional context

No response

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

No branches or pull requests

1 participant