Skip to content

Fix publication badge spacing cache bust#27

Merged
systemreliability merged 1 commit into
mainfrom
codex/fix-badge-spacing-cache
May 8, 2026
Merged

Fix publication badge spacing cache bust#27
systemreliability merged 1 commit into
mainfrom
codex/fix-badge-spacing-cache

Conversation

@systemreliability
Copy link
Copy Markdown
Owner

Summary

  • Increase the OpenAlex-to-Google Scholar badge gap to 0.9rem and make the rule !important
  • Normalize OpenAlex/Google Scholar badge links as inline-flex so shield images align cleanly
  • Fix the CSS cache-busting plugin to hash the actual _sass directory instead of the nonexistent assets/_sass

Verification

  • Ran git diff --check
  • Ran bundle exec jekyll build
  • Confirmed generated pages now reference a changed main.css cache hash
  • Confirmed generated CSS contains the stronger OpenAlex-to-Google Scholar spacing rule

Notes

Local Jekyll build completed successfully. The local machine still lacks ImageMagick convert, so responsive image generation logged existing convert: command not found warnings while Jekyll exited successfully.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread _plugins/cache-bust.rb

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!
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@systemreliability systemreliability merged commit d2af48f into main May 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant