-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Ignore asset url query string or anchor when generating path #20
Comments
As a quick workaround you can use this (if your are using @font-face {
font-family: 'FontAwesome';
src: url(font-path('fontawesome-webfont.eot')?v=3.0.1);
src: url(font-path('fontawesome-webfont.eot')?v=3.0.1#iefix) format("embedded-opentype"),
url(font-path('fontawesome-webfont.woff')?v=3.0.1) format("woff"),
url(font-path('fontawesome-webfont.ttf')?v=3.0.1) format("truetype");
font-weight: normal;
font-style: normal;
} If you are using @font-face {
font-family: 'FontAwesome';
src: url(font-path('fontawesome-webfont.eot'));
src: url(font-path('fontawesome-webfont.eot')#iefix) format("embedded-opentype"),
url(font-path('fontawesome-webfont.woff')) format("woff"),
url(font-path('fontawesome-webfont.ttf')) format("truetype");
font-weight: normal;
font-style: normal;
} Meanwhile - I'll try to adapt Rails patch into Jekyll-Assets core. |
Thanks for the reply the above throws an exception unfortunately: I was taking a quick look through today on lunch to try and be helpful and send this as a pull request but I'm not that familiar with the way Jekyll puts thing together yet so I will be interested to learn from your solution. |
I guess, that's because of Liquid pre-processor I've introduced in latest version. Can you, please, show me full source of the file that causes an exception? |
Also thanks for taking the time to make this it's really useful! |
There was an issue with Liquid pre-processor reported as part of #20. Updated assets to mimc same situation.
|
Nice work! |
Unfortunately I think this issue popped up again, however, I was able to get around it like so:
|
I encountered and error when trying to use Font Awesome, this is however a more general bug I believe relating to the
asset_path
method.The following is the code I used, edited to take advantage of
font-path()
. This code fails because it is looking for a filename that includes the query string. Removing everything after the?
will not throw any errors.This is not a problem only for this plugin, I found this issue in the Rails repo that proposes a simple solution.
If there is a work around other than this update that I'm missing please let me know!
The text was updated successfully, but these errors were encountered: