Compare commits

...

2 Commits

Author SHA1 Message Date
Helen Chong e6dec079f9 Add cache policy 2024-08-20 08:52:03 +08:00
Helen Chong 91d3de5db2 Get Intel One Mono font from root directory 2024-08-20 08:51:52 +08:00
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
<FilesMatch "\.(ico|svg|avif|webp|jpg|jpeg|png|gif|woff2)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
<FilesMatch "\.(css|js)$">
Header set Cache-Control "no-cache, public"
</FilesMatch>
# Template to enable clean URLs for the Apache web server. # Template to enable clean URLs for the Apache web server.
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine On RewriteEngine On

View File

@ -3,28 +3,28 @@
font-family: 'Intel One Mono'; font-family: 'Intel One Mono';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url('./../../fonts/IntelOneMono-Regular.woff2') format('woff2'); src: url('/fonts/IntelOneMono-Regular.woff2') format('woff2');
} }
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Intel One Mono'; font-family: 'Intel One Mono';
font-style: italic; font-style: italic;
font-weight: 400; font-weight: 400;
src: url('./../../fonts/IntelOneMono-Italic.woff2') format('woff2'); src: url('/fonts/IntelOneMono-Italic.woff2') format('woff2');
} }
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Intel One Mono'; font-family: 'Intel One Mono';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
src: url('./../../fonts/IntelOneMono-Bold.woff2') format('woff2'); src: url('/fonts/IntelOneMono-Bold.woff2') format('woff2');
} }
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Intel One Mono'; font-family: 'Intel One Mono';
font-style: italic; font-style: italic;
font-weight: 700; font-weight: 700;
src: url('./../../fonts/IntelOneMono-BoldItalic.woff2') format('woff2'); src: url('/fonts/IntelOneMono-BoldItalic.woff2') format('woff2');
} }
*::selection { *::selection {
color: #202021; color: #202021;