Unverified Commit c69ce4ff authored by Abhishek Arya's avatar Abhishek Arya Committed by GitHub
Browse files

Merge pull request #255 from devmoran/main

Fixes custom font path in production env
parents 7568f985 629d8d68
......@@ -21,11 +21,7 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400&display=swap" rel="stylesheet" />
{% if jekyll.environment == 'production' %}
<link rel="stylesheet" href="{{"/fonts/fonts-prod.css" | relative_url }}">
{% else %}
<link rel="stylesheet" href="/fonts/fonts.css" />
{% endif %}
<link rel="stylesheet" href="{{site.baseurl}}/fonts/fonts.css" />
<script src="https://unpkg.com/swiper@6.8.4/swiper-bundle.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/swiper@6.8.4/swiper-bundle.min.css"/>
......
/* // Fonts */
@font-face {
font-family: 'Prodigy';
src: url('/slsa/fonts/ProdigySans-Regular.ttf') format('truetype'),
url('/slsa/fonts/ProdigySans-Regular.woff2') format('woff2'),
url('/slsa/fonts/ProdigySans-Regular.woff') format('woff');
}
@font-face {
font-family: 'Prodigy medium';
src: url('/slsa/fonts/ProdigySans-Medium.ttf') format('truetype'),
url('/slsa/fonts/ProdigySans-Medium.woff2') format('woff2'),
url('/slsa/fonts/ProdigySans-Medium.woff') format('woff');
}
@font-face {
font-family: 'Prodigy semibold';
src: url('/slsa/fonts/ProdigySans-SemiBold.ttf') format('truetype'),
url('/slsa/fonts/ProdigySans-SemiBold.woff2') format('woff2'),
url('/slsa/fonts/ProdigySans-SemiBold.woff') format('woff');
}
\ No newline at end of file
......@@ -3,21 +3,21 @@
@font-face {
font-family: 'Prodigy';
src: url('/fonts/ProdigySans-Regular.ttf') format('truetype'),
url('/fonts/ProdigySans-Regular.woff2') format('woff2'),
url('/fonts/ProdigySans-Regular.woff') format('woff');
src: url('ProdigySans-Regular.ttf') format('truetype'),
url('ProdigySans-Regular.woff2') format('woff2'),
url('ProdigySans-Regular.woff') format('woff');
}
@font-face {
font-family: 'Prodigy medium';
src: url('/fonts/ProdigySans-Medium.ttf') format('truetype'),
url('/fonts/ProdigySans-Medium.woff2') format('woff2'),
url('/fonts/ProdigySans-Medium.woff') format('woff');
src: url('ProdigySans-Medium.ttf') format('truetype'),
url('ProdigySans-Medium.woff2') format('woff2'),
url('ProdigySans-Medium.woff') format('woff');
}
@font-face {
font-family: 'Prodigy semibold';
src: url('/fonts/ProdigySans-SemiBold.ttf') format('truetype'),
url('/fonts/ProdigySans-SemiBold.woff2') format('woff2'),
url('/fonts/ProdigySans-SemiBold.woff') format('woff');
src: url('ProdigySans-SemiBold.ttf') format('truetype'),
url('ProdigySans-SemiBold.woff2') format('woff2'),
url('ProdigySans-SemiBold.woff') format('woff');
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment