Skip to content

Remove $baseurl template preprocessing from SCSS#2744

Merged
gsmet merged 2 commits into
quarkusio:mainfrom
holly-cummins:remove-baseurl-from-scss
Jun 22, 2026
Merged

Remove $baseurl template preprocessing from SCSS#2744
gsmet merged 2 commits into
quarkusio:mainfrom
holly-cummins:remove-baseurl-from-scss

Conversation

@holly-cummins

@holly-cummins holly-cummins commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

This is one of the first things where I've been unable to come up with a roq alternative for something done in Jekyll. Jekyll uses template processing to inject a value into a stylesheet, and then uses that injected value in a variable used elsewhere in css. The value is $baseurl, a path prefix. It would be useful if quarkus.io was hosted in a sub-path of another site, like commhaus.org/quarkus. But we don't have that requirement, and are unlikely to do so, so I think we can reduce complexity by just ditching the $baseurl.

If we don't want to do that, the other option is to use a maven step or a sed in a CI step to edit the css and put in the blank path prefix for $baseurl, but that seems like a lot of complexity for very little gain.

This PR:

  • Removes the $baseurl SCSS variable that was injected via Jekyll Liquid preprocessing ($baseurl: "{{ site.baseurl }}")
  • Replaces all url($baseurl + '/assets/...') with plain url('/assets/...') across 8 SCSS files

Builds on #2740, so should be reviewed and merged after that one. .

We need check these pages on the preview to verify background images render correctly:

  • Homepage (/) — hero section background image (bg-home-primary.png)
  • Guides index (/guides/) — category icons (tutorials, how-to, concepts, reference, PDF) in both light and dark mode
  • A specific guide (e.g. /guides/getting-started) — guide type icons in the breadcrumb area
  • Documentation index (/version/main/guides/) — same category icons + quarkiverse icon on quarkiverse extensions
  • Footer (any page) — footer background image (bg-footer.png), visible on wide screens (≥1024px)
  • Spring page (/spring/) — title background image
  • Events page (/events/) — speaker callout card background
  • 1k Contributors page — page header background image – only I'm not sure this page has a url anymore

holly-cummins and others added 2 commits June 18, 2026 14:35
The $baseurl variable was injected into SCSS via Jekyll Liquid
preprocessing — a pattern that doesn't transfer to other static
site generators. Since quarkus.io assets are always served from
the domain root, the variable was always empty and the
concatenation was a no-op. Use plain absolute paths instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown

🙈 The PR is closed and the preview is expired.

@holly-cummins

Copy link
Copy Markdown
Contributor Author

I've worked through the URLs which use background images, like https://quarkus-website-pr-2744-preview.surge.sh/events/, and all seem fine.

@gsmet gsmet merged commit f10af8d into quarkusio:main Jun 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants