Skip to content

Commit c65344d

Browse files
committed
Turns out that fonts can be in /src/ too. Make them infinitely cacheable.
1 parent fb80424 commit c65344d

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

webserver/src/layouts/Layout.astro

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ if (login_uri.hostname !== "localhost") {
120120
<style is:global>
121121
@font-face {
122122
font-family: "Lato";
123-
src: url("/fonts/Lato-Bold.woff2") format("woff2");
123+
src: url(/src/fonts/Lato-Bold.woff2) format("woff2");
124124
font-style: normal;
125125
font-weight: 700;
126126
font-display: block;
@@ -129,7 +129,7 @@ if (login_uri.hostname !== "localhost") {
129129

130130
@font-face {
131131
font-family: "Lato";
132-
src: url("/fonts/Lato-BoldItalic.woff2") format("woff2");
132+
src: url(/src/fonts/Lato-BoldItalic.woff2) format("woff2");
133133
font-style: italic;
134134
font-weight: 700;
135135
font-display: block;
@@ -138,7 +138,7 @@ if (login_uri.hostname !== "localhost") {
138138

139139
@font-face {
140140
font-family: "Lato";
141-
src: url("/fonts/Lato-Italic.woff2") format("woff2");
141+
src: url(/src/fonts/Lato-Italic.woff2) format("woff2");
142142
font-style: italic;
143143
font-weight: 400;
144144
font-display: block;
@@ -147,7 +147,7 @@ if (login_uri.hostname !== "localhost") {
147147

148148
@font-face {
149149
font-family: "Lato";
150-
src: url("/fonts/Lato-Regular.woff2") format("woff2");
150+
src: url(/src/fonts/Lato-Regular.woff2) format("woff2");
151151
font-style: normal;
152152
font-weight: 400;
153153
font-display: block;

0 commit comments

Comments
 (0)