-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
Theme asset files are not overwritten properly (trying to update FontAwesome) #722
Comments
Smells like a Jekyll error to me. Bundled If I get time this week I'll test it and see if I notice the same issue you're having. In the meantime can you verify its not a browser caching issue. Can you diff the updated files in |
This is definitely not a browser caching issue. I cleared my browser cache multiple times and cleared the jekyll caching ( It is noteworthy that additional files (i.e. files that are not overwriting asset files from the theme) are processed correctly, i.e. they are properly added to the For the moment I would be happy if you could simply update the Font Awesome package in the next gem theme version, but this is obviously just a workaround and not the core of the issue. In any case: congratulation and thanks for this overall awesome Jekyll theme! :-) |
Ok. I'll take a look and see if I can reproduce. Will have to file an issue upstream since it seems to be Jekyll related. I don't think setting |
PS I opened an issue to update Font Awesome #723. Not sure when I'll get to it but if you'd like to submit a pull request it should be a relatively easy one to knock out. |
Just got around to testing this and I was able to reproduce it. Looks like there might be a bug with Jekyll and how it handles files in Best I can tell files with YAML Front Matter override fine ie: When I get a chance I'll file an issue on |
Bug filed jekyll/jekyll#5676 |
Great, thanks for your effort. Like you mentioned, the override seems to work for files, that are actually being processed by Jekyll. The font files, as far as I can tell, are essentially just being copied over to the output folder. I guess, there may be very small bug somewhere in Jekyll for this particular case (overriding static unprocessed files from the theme). Additional files in the |
Just saw the theme update to 4.1.1 - thanks for the super-fast update! Thumbs up! (Yes, I know, this does not fix the underlying issue, but at the moment solves my specific problem :) ) |
additional reference issue: jekyll/jekyll#5704 |
Closing as this is an upstream issue. |
@BenjaminJurke FYI I found a workaround until this is fixed upstream. If I add YAML Front Matter to
to the top of your modified |
Well, since you updated FontAwesome in the gem my issue has been resolved. However, I recently stumbled over something that may be related: I recently used your theme for a German language website, i.e. I am using localizations for the first time. But it appears that the translations in the This appears to be (at least somewhat) related, because once again processing of local and gem-default files is handled differently (unexpected), in this particular case the local variants appear to have preference. Jekyll and theme are at the most recent version - I basically run Like I said, not a real issue, but maybe something worth looking into it. |
@BenjaminJurke That's another issue. Jekyll only reads There's been talk about bringing them in (which I'm in favor of) since it reduces the friction of starting with a theme gem. Right now you have to physically copy over the files from the MM repo. Ref: jekyll/jekyll#5470 |
OK, I see - was not aware of this. |
- Add `---` YAML Front Matter as a workaround to allow the theme gem's version to be overridden locally. - Adjust page scope in Front Matter default to avoid adding a layout to `main.min.js` - Fixes mmistakes#874, Fixes mmistakes#722
- Add `---` YAML Front Matter as a workaround to allow the theme gem's version to be overridden locally. - Adjust page scope in Front Matter default to avoid adding a layout to `main.min.js` - Fixes mmistakes#874, Fixes mmistakes#722
- Add `---` YAML Front Matter as a workaround to allow the theme gem's version to be overridden locally. - Adjust page scope in Front Matter default to avoid adding a layout to `main.min.js` - Fixes mmistakes#874, Fixes mmistakes#722
bundle update
.bundle exec jekyll build
.Environment informations
github-pages
orjekyll
gem version: 3.3.1Expected behavior
I tried to update the FontAwesome 4.6.3 that is bundled within the Minimal Mistakes theme to the most recent version 4.7.0. The local
_sass/vendor/font-awesome/
folder is easily updated by replacing the files and a minimal renaming of the main_font-awesome.scss
file (adding the leading underscore). However, updating the actual font files in the localassets/fonts/
folder does NOT update the files in the destination output.Naturally, I would expect my local source files to replace the default theme files in the destination folder.
I also tried adding the
assets/fonts/
folder to thekeep_files
in the_config.yml
in order to preserve a manual update of the relevant font files after the Jekyll run, but even then the theme files are used and overwrite my replacement,Steps to reproduce the behavior
See above. However, I am not sure if this a theme error, a general Jekyll error or entirely my own stupidity...
The text was updated successfully, but these errors were encountered: