Ensure Lexend font family is applied to all pages

This commit is contained in:
Helen Chong 2024-12-23 22:26:35 +08:00
parent 92904193fa
commit bf2b665b7a
2 changed files with 6 additions and 6 deletions

View File

@ -22,29 +22,29 @@
<link rel="icon" type="image/svg+xml" href="{{ site.chyrp_url }}/favicon.svg"> <link rel="icon" type="image/svg+xml" href="{{ site.chyrp_url }}/favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.chyrp_url }}/favicon/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="{{ site.chyrp_url }}/favicon/apple-touch-icon.png">
<link rel="manifest" href="{{ site.chyrp_url }}/favicon/site.webmanifest"> <link rel="manifest" href="{{ site.chyrp_url }}/favicon/site.webmanifest">
<link rel="preload" href="../../../fonts/lexend-v19-latin-regular.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/fonts/lexend-v19-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="../../../fonts/lexend-v19-latin-700.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/fonts/lexend-v19-latin-700.woff2" as="font" type="font/woff2" crossorigin>
<style> <style>
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Lexend'; font-family: 'Lexend';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url('../../../fonts/lexend-v19-latin-regular.woff2') format('woff2'); src: url('/fonts/lexend-v19-latin-regular.woff2') format('woff2');
} }
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Lexend'; font-family: 'Lexend';
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
src: url('../../../fonts/lexend-v19-latin-600.woff2') format('woff2'); src: url('/fonts/lexend-v19-latin-600.woff2') format('woff2');
} }
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Lexend'; font-family: 'Lexend';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
src: url('../../../fonts/lexend-v19-latin-700.woff2') format('woff2'); src: url('/fonts/lexend-v19-latin-700.woff2') format('woff2');
} }
</style> </style>
{{ theme.feeds() }} {{ theme.feeds() }}

View File

@ -31,7 +31,7 @@
background-color: #d090ff; background-color: #d090ff;
} }
body { body {
font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-family: Lexend, Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
font-size: 1.2rem; font-size: 1.2rem;
color: #ffffff; color: #ffffff;
line-height: 1.5; line-height: 1.5;