-
Notifications
You must be signed in to change notification settings - Fork 115
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
Relative paths for relocatable websites #946
Comments
(sorry if I misunderstood your message) If you have a base URL
you can achieve this by having Let's say that in
this will be mapped to If not, would you mind either adding me to a repo or showing me the produced HTML and what you'd like instead? (I understand that you'd like relocatable paths but this is not trivial to do with the current design and I'm not yet convinced this is required by what you're trying to do) |
I think the problem is that the
etc. |
Assuming you use GA to generate your websites, you can modify this https://github.com/tlienart/PkgPage.jl/blob/8716a293097213b63c078680e7d74f35d28df353/.github/workflows/DeployPage.yml#L17-L22 into
i.e. you can pass that PS: I'm not trying to be difficult, you're not the first ones stumbling upon the relative path thing, I understand that in your view it would just be easier to get relative paths but to make it clearer, this is not something I can easily do now with Franklin, it'll take far less time to try to see if something like the above would do the trick for you. |
I'll close this but feel free to reopen if I can help out more |
I would like to create multiple franklin-hosted (well, really PkgPage-generated) websites on the same domain! I see that all of the resources are referred to by absolute path, and the
prepath
argument always has a/
prepended to it. Is there some way that we can provideprepath=nothing
or similar to signal to Franklin that we want a relocatable HTML generated, and thus it should not have the/
prepended to theprepath
? That way the links to resources can be relative and not absolute.Thank you!
The text was updated successfully, but these errors were encountered: