Fix publication badge spacing cache bust#27
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 50af9334a4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| def bust_css_cache(file_name) | ||
| CacheDigester.new(file_name: file_name, directory: 'assets/_sass').digest! | ||
| CacheDigester.new(file_name: file_name, directory: '_sass').digest! |
There was a problem hiding this comment.
Include main.scss in CSS cache digest
When the generated stylesheet changes because assets/css/main.scss changes (for example the Liquid $max-content-width assignment or the import order/list), this new digest still hashes only _sass, so the URL emitted by _includes/head.liquid can stay unchanged while /assets/css/main.css has different content. Since assets/css/main.scss is the entry point for that stylesheet, include it (or the compiled CSS) in the digest along with _sass to avoid serving stale CSS.
Useful? React with 👍 / 👎.
Summary
0.9remand make the rule!important_sassdirectory instead of the nonexistentassets/_sassVerification
git diff --checkbundle exec jekyll buildmain.csscache hashNotes
Local Jekyll build completed successfully. The local machine still lacks ImageMagick
convert, so responsive image generation logged existingconvert: command not foundwarnings while Jekyll exited successfully.