Skip to content

Apply TeX Gyre fonts by overriding Minima theme styles correctly#7

Open
azayrahmad wants to merge 3 commits into
mainfrom
fix/tex-gyre-fonts-application-1719814121853632813
Open

Apply TeX Gyre fonts by overriding Minima theme styles correctly#7
azayrahmad wants to merge 3 commits into
mainfrom
fix/tex-gyre-fonts-application-1719814121853632813

Conversation

@azayrahmad
Copy link
Copy Markdown
Owner

The TeX Gyre fonts were not being applied because the project's custom styles were defined in assets/css/main.scss, which resulted in a standalone assets/css/main.css that was not being linked by the Minima theme's default head.html.

To fix this, I have:

  1. Moved the custom styles to assets/main.scss so that it overrides the Minima theme's default stylesheet and gets compiled into the expected assets/main.css.
  2. Integrated the Minima theme's base styles by adding @import "minima"; to the new assets/main.scss, while overriding the $base-font-family variable.
  3. Updated the font face paths to correctly point to the assets/fonts/ directory.
  4. Overrode the theme's _includes/head.html to include a new _includes/head_custom.html, which contains the Google site verification tag and ensures that future custom head elements can be easily added.
  5. Verified that the generated _site/assets/main.css contains both the theme's base styles and the custom font definitions, and that the HTML files correctly link to this stylesheet.

PR created automatically by Jules for task 1719814121853632813 started by @azayrahmad

…ma theme's main stylesheet and head inclusion logic.

- Renamed `assets/css/main.scss` to `assets/main.scss` to correctly override the theme's default stylesheet.
- Updated `assets/main.scss` to properly import the Minima theme and use custom font variables.
- Corrected font asset paths to be relative to the new stylesheet location.
- Restructured `_includes` to follow standard Jekyll practices for custom head content by overriding `_includes/head.html` and including `_includes/head_custom.html`.
- Verified changes visually using Playwright and confirmed font application in generated site output.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 2 commits April 2, 2026 04:51
…ma theme's stylesheet and head inclusion.

- Renamed `assets/css/main.scss` to `assets/main.scss` to correctly override the Minima theme's default stylesheet and ensure it is compiled to `/assets/main.css`.
- Updated `assets/main.scss` to use Liquid's `relative_url` filter for font asset paths, ensuring correct resolution on GitHub Pages.
- Removed `!default` from the `$base-font-family` override and added a `body` font-family override to guarantee the TeX Gyre fonts take precedence.
- Integrated the Minima theme styles using `@import "minima";`.
- Created an override for `_includes/head.html` to link to `/assets/main.css` and include a custom head hook.
- Added `_includes/head_custom.html` to manage custom head elements like Google site verification.
- Verified font loading and application via Playwright computed styles and visual screenshots.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
…ma theme's stylesheet and head inclusion logic.

- Renamed `assets/css/main.scss` to `assets/main.scss` to correctly override the Minima theme's default stylesheet and ensure it is compiled to `/assets/main.css`.
- Updated `assets/main.scss` with absolute font URLs and reinforced font family overrides for headings and navigation using higher specificity selectors.
- Overrode `_includes/head.html` to provide a hook for custom head elements (`_includes/head_custom.html`), bypassing version-specific theme limitations.
- Verified font application (Heros and Termes) using Playwright, confirming successful 200 status for font asset requests and correct computed styles on multiple pages.
- Addresses the disconnect between custom SCSS and the Jekyll build process in the Minima theme context.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
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