This is an automated email from the ASF dual-hosted git repository.
ianmcook pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-site.git
The following commit(s) were added to refs/heads/main by this push:
new 374b8b003db Fix fonts in preview pages in forks (#710)
374b8b003db is described below
commit 374b8b003dbfc8bedb35bf07f58e4e646b130e45
Author: Ian Cook <[email protected]>
AuthorDate: Thu Sep 25 15:02:46 2025 -0400
Fix fonts in preview pages in forks (#710)
The base URL of preview sites isn't the top of the domain, so these font
files were not loading. This fixes it without causing any problems on
the main deployed site.
---
css/main.scss | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/css/main.scss b/css/main.scss
index 21e7466c20a..37db971bbfe 100644
--- a/css/main.scss
+++ b/css/main.scss
@@ -27,7 +27,7 @@ body {
font-family: Lato;
font-style: normal;
font-weight: 400;
- src: url('/assets/fonts/lato-v24-latin-regular.woff2') format('woff2');
+ src: url('../assets/fonts/lato-v24-latin-regular.woff2') format('woff2');
}
@font-face {
@@ -35,7 +35,7 @@ body {
font-family: Lato;
font-style: italic;
font-weight: 400;
- src: url('/assets/fonts/lato-v24-latin-italic.woff2') format('woff2');
+ src: url('../assets/fonts/lato-v24-latin-italic.woff2') format('woff2');
}
.footer {