-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
/asset folder support for themes #5341
Comments
Nice. Thanks for opening this @ashmaroli. This has been on my mind for a while to open. See #4510 (comment) and related discussion with @envygeeks. IIRC, where the discussion landed, would be to add an From Jekyll's perspective, the logic would be that for every file that existing in the Theme's assets folder, we'd first look to see if the file already exists in the site (to support the site maintainer's ability to override any file, and also not to clobber existing files). If the file doesn't exist, we copy it from the theme, into the existing site, and render it like we would any other file. From a theme maintainer's perspective, this would allow them to package images, fonts, and other static assets with their theme. From a user's perspective, this would solve the problem of needing to create /cc @jekyll/ecosystem |
I'm patiently awaiting the day this becomes a reality.
Would this extra 'thinking and acting' greatly slow down jekyll's site generation and regeneration ? |
@ashmaroli We can assume the implementation will do so in a linear time to the amount of assets being used, rather than the amount of content. So the performance damage shouldn't be too large. |
Having "/assets" affects us none, other than we would overwrite said files if both were installed as we assert ourselves pretty aggressively over Jekyll to guard our own concerns... so if you have Now if Gem based themes supported say "_assets" and had the folders we had and downstream (Jekyll Core's plugins) understsood those and could disable themselves with a configuration option, at that point we would update Jekyll Assets to disable the internal SASS/Cofeescript processing and do it for you, enabling our advanced asset management. That is what I would like to see and something I am happy to implement if the world is fine with that because then everything can work in tandum, I can build the same tags here in core (or in a core-plugin that is default), and Jekyll Assets can simply disable the core stuff and boom, everything is just magic at that point. |
This would all need to come in 4.0 though, this is not a 3.x change, well it could be but it's better suited for 4. |
why not have a Also, config files can then include the plugins the theme depends on making Jekyll automatically load those to support the build process of the theme. |
@vwochnik I like that idea and I think it should be it's own feature ticket! |
@envygeeks Can you explain why
Sounds like |
Some discussion in #5341 (comment), but to summarize, this issue is a feature request for theme's to support a |
I like this feature a lot and think it will greatly improve the theme user experience. For both users and developers. For developers, the Theme remains a working Jekyll site, and for downstream users, it removes a step such that themes can work out of the box. Any objection to targeting this for 3.3? |
I'm okay with 3.3. |
Implemented in #5364. |
Hi,
I'm creating a new gem-based Jekyll theme. It uses an
assets
directory alongside the regular scaffolding.I'm aware that Jekyll doesn't currently support this feature.
I was wondering.. why can't Jekyll expand its scope to include
assets
as well along the similar lines_layouts, _includes
and_sass
have been incorporated.How would this affect JekyllAssets plugin?
/cc @jekyll/ecosystem, @envygeeks
The text was updated successfully, but these errors were encountered: