Skip to content

Commit

Permalink
fix 404 error font
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatate committed Dec 27, 2024
1 parent 7aceee3 commit 81fb72e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('./fonts/mono45.woff2') format('woff2');
src: url('~/assets/fonts/mono45.woff2') format('woff2');
}
@font-face {
font-family: 'Dank';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('./fonts/DankMono.woff2') format('woff2');
src: url('~/assets/fonts/DankMono.woff2') format('woff2');
}

@font-face {
Expand All @@ -20,7 +20,7 @@
font-display: swap;
src:
local(Inter),
url('./fonts/Inter-VariableFont.woff2') format('woff2');
url('~/assets/fonts/Inter-VariableFont.woff2') format('woff2');
font-stretch: 25% 151%;
unicode-range: U+000-5FF;
}
Expand Down
16 changes: 8 additions & 8 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ const {
useHead({
htmlAttrs: {lang: 'fr-FR'},
link: [
{
hid: 'preload-font-mono',
rel: 'preload',
as: 'font',
// i don't know how to import this dynamically
href: '/_nuxt/mono45.90bc7bc8.woff2',
type: 'font/woff2',
},
// {
// hid: 'preload-font-mono',
// rel: 'preload',
// as: 'font',
// // i don't know how to import this dynamically
// href: '/_nuxt/mono45.90bc7bc8.woff2',
// type: 'font/woff2',
// },
{
hid: 'canonical',
rel: 'canonical',
Expand Down

0 comments on commit 81fb72e

Please sign in to comment.