Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Pretty URLs for page assets in CMS mode? #153

Open
gerundt opened this issue Aug 3, 2014 · 1 comment
Open

Pretty URLs for page assets in CMS mode? #153

gerundt opened this issue Aug 3, 2014 · 1 comment

Comments

@gerundt
Copy link
Contributor

gerundt commented Aug 3, 2014

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

@ludovicchabant
Copy link
Owner

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants