You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
I tried the CMS mode and have problems with the page assets.
I have the page _content/pages/foo.html and a image _content/pages/foo-assets/bar.jpg. If I use <img src="{{ assets['bar'] }}" ... the URL get translated to http://webserver/_content/pages/foo-assets/bar.jpg. Of course is the path correct, but he is ugly. ;)
If I bake the site, I get the nice http://webserver/foo/bar.jpg.
Are pretty URLs possible for page assets?
Greetings,
Tim
The text was updated successfully, but these errors were encountered:
The idea was originally to prevent unnecessarily copying page assets around, since we can serve them directly from their original path... I'll have to add this to the long list of feature requests :) (I'm busy on PieCrust 2.0 right now so that list is getting pretty long)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I tried the CMS mode and have problems with the page assets.
I have the page
_content/pages/foo.html
and a image_content/pages/foo-assets/bar.jpg
. If I use<img src="{{ assets['bar'] }}" ...
the URL get translated tohttp://webserver/_content/pages/foo-assets/bar.jpg
. Of course is the path correct, but he is ugly. ;)If I bake the site, I get the nice
http://webserver/foo/bar.jpg
.Are pretty URLs possible for page assets?
Greetings,
Tim
The text was updated successfully, but these errors were encountered: