-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support for gem theme assets #43
Comments
As you can see from the documentation japr needs the assets that it compiles to be specified between Liquid tags like For example my own site / blog uses a
These css files will be then mashed together into one asset file during compilation. The feature you are requesting is a very interesting one, and for it to work, from my point of view, it would require for japr to have sort of an automatic mode which would automagically gather local asset files from the layouts and then compile them together. Not sure how to implement it at this point though. 😄 I'll have to think about it. |
OR you could overwrite some of your theme's files as described here and insert the assets between |
Hi @janosrusiczki , I've got those bundles here: Currently I've got: {% javascript_asset_tag vendor %}
- assets/js/vendor/modernizr.min.js
- node_modules/foundation-sites/dist/js/foundation.min.js
- assets/js/vendor/fastclick.js
- assets/js/vendor/featherlight.js
- assets/js/vendor/lazysizes.js
- assets/js/vendor/ls.unveilhooks.js
- assets/js/vendor/owl.carousel.js
- assets/js/vendor/what-input.min.js
- assets/js/vendor/clipboard.min.js
{% endjavascript_asset_tag %}
<script>
$(document).foundation();
</script> These assets are in the theme gem which you can see the location of with
I tried adding the full path to the theme assets with:
Which is all good other than Many thanks for looking at this! Cheers! Kyle |
Way ahead of me I see. 😄 I'll definitely look into it! |
Hahaha :D I'm just forking this repo and I'll have a quick poke around to see if I can do anything useful xD 💯 |
Hi @janosrusiczki,
Thank you for the awesome asset pipeline! Any idea on what work is needed to fetch assets from a Jekyll theme? I'll happily submit a PR if you can point me in the right direction?
I thought Jekyll pulled assets over from the theme (see - https://jekyllrb.com/docs/themes/#understanding-gem-based-themes). Maybe the plugin is running before these have been synced over? Jekyll doesn't add the assets to the site directory but they must be referenced in Ruby array?
Kind regards,
Kyle
The text was updated successfully, but these errors were encountered: