-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For security reasons, Amazon does not allow Webpage loads resources from CDN or domain with public access or elevated risk via link(s). For this reason we host the javascript files locally and reference them in the theme. Signed-off-by: Jacob Weinstock <[email protected]> Co-authored-by: Jacob Weinstock <[email protected]>
- Loading branch information
1 parent
933ffed
commit 8fb457f
Showing
2 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
From 510caead5e2dacbf6df5491926a13f609174416c Mon Sep 17 00:00:00 2001 | ||
From: Jacob Weinstock <[email protected]> | ||
Date: Thu, 31 Oct 2024 10:24:12 -0600 | ||
Date: Fri, 1 Nov 2024 09:16:06 -0600 | ||
Subject: [PATCH] Security update: | ||
|
||
For security reasons, Amazon does not allow | ||
|
@@ -10,11 +11,32 @@ and reference them in the theme. | |
|
||
Signed-off-by: Jacob Weinstock <[email protected]> | ||
--- | ||
assets/scss/rtl/_main.scss | 4 ++-- | ||
layouts/partials/head.html | 4 ++-- | ||
layouts/partials/scripts.html | 4 ++-- | ||
static/js/prism.js | 2 +- | ||
3 files changed, 5 insertions(+), 5 deletions(-) | ||
4 files changed, 7 insertions(+), 7 deletions(-) | ||
|
||
diff --git a/assets/scss/rtl/_main.scss b/assets/scss/rtl/_main.scss | ||
index ffe9577..d7ddaff 100644 | ||
--- a/assets/scss/rtl/_main.scss | ||
+++ b/assets/scss/rtl/_main.scss | ||
@@ -31,7 +31,7 @@ body:lang(ur) { | ||
} | ||
|
||
body:lang(fa) { | ||
- @import url('https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css'); | ||
+ @import url('/font/font-face.css'); | ||
font-family: 'Vazir', "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
} | ||
|
||
@@ -43,4 +43,4 @@ body:lang(he) { | ||
body:lang(ar) { | ||
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap'); | ||
font-family: 'Tajawal', "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
-} | ||
\ No newline at end of file | ||
+} | ||
diff --git a/layouts/partials/head.html b/layouts/partials/head.html | ||
index a40f447..db9ae40 100644 | ||
--- a/layouts/partials/head.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@font-face { | ||
font-family: Vazir; | ||
src: url('Vazir-Regular.eot'); | ||
src: url('Vazir-Regular.eot?#iefix') format('embedded-opentype'), | ||
url('Vazir-Regular.woff2') format('woff2'), | ||
url('Vazir-Regular.woff') format('woff'), | ||
url('Vazir-Regular.ttf') format('truetype'); | ||
font-weight: normal; | ||
font-display:swap; | ||
} | ||
|
||
@font-face { | ||
font-family: Vazir; | ||
src: url('Vazir-Bold.eot'); | ||
src: url('Vazir-Bold.eot?#iefix') format('embedded-opentype'), | ||
url('Vazir-Bold.woff2') format('woff2'), | ||
url('Vazir-Bold.woff') format('woff'), | ||
url('Vazir-Bold.ttf') format('truetype'); | ||
font-weight: bold; | ||
font-display:swap; | ||
} | ||
|
||
@font-face { | ||
font-family: Vazir; | ||
src: url('Vazir-Thin.eot'); | ||
src: url('Vazir-Thin.eot?#iefix') format('embedded-opentype'), | ||
url('Vazir-Thin.woff2') format('woff2'), | ||
url('Vazir-Thin.woff') format('woff'), | ||
url('Vazir-Thin.ttf') format('truetype'); | ||
font-weight: 100; | ||
font-display:swap; | ||
} | ||
|
||
@font-face { | ||
font-family: Vazir; | ||
src: url('Vazir-Light.eot'); | ||
src: url('Vazir-Light.eot?#iefix') format('embedded-opentype'), | ||
url('Vazir-Light.woff2') format('woff2'), | ||
url('Vazir-Light.woff') format('woff'), | ||
url('Vazir-Light.ttf') format('truetype'); | ||
font-weight: 300; | ||
font-display:swap; | ||
} | ||
|
||
@font-face { | ||
font-family: Vazir; | ||
src: url('Vazir-Medium.eot'); | ||
src: url('Vazir-Medium.eot?#iefix') format('embedded-opentype'), | ||
url('Vazir-Medium.woff2') format('woff2'), | ||
url('Vazir-Medium.woff') format('woff'), | ||
url('Vazir-Medium.ttf') format('truetype'); | ||
font-weight: 500; | ||
font-display:swap; | ||
} | ||
|
||
@font-face { | ||
font-family: Vazir; | ||
src: url('Vazir-Black.eot'); | ||
src: url('Vazir-Black.eot?#iefix') format('embedded-opentype'), | ||
url('Vazir-Black.woff2') format('woff2'), | ||
url('Vazir-Black.woff') format('woff'), | ||
url('Vazir-Black.ttf') format('truetype'); | ||
font-weight: 900; | ||
font-display:swap; | ||
} |