fonts, schema

This commit is contained in:
matthieu42morin 2024-04-29 15:42:11 +02:00
parent 6e29c4f9e5
commit 4e64c1b2f1
2 changed files with 33 additions and 21 deletions

View File

@ -1,18 +1,30 @@
<!doctype html>
<html lang="en">
<head prefix="og: https://ogp.me/ns#">
<meta charset="utf-8" />
<meta name="generator" content="gh:importantimport/urara" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/assets/apple-touch-icon.png" />
<link rel="icon" href="%sveltekit.assets%/assets/favicon@192.png" />
<link rel="manifest" crossorigin="use-credentials" href="/manifest.webmanifest" />
<link rel="alternate" type="application/feed+json" href="/feed.json" />
<link rel="alternate" type="application/atom+xml" href="/atom.xml" />
<link rel="sitemap" type="application/xml" href="/sitemap.xml" />
%sveltekit.head%
</head>
<body itemscope itemtype="https://schema.org/WebPage">
<div style="display: contents">%sveltekit.body%</div>
</body>
<head prefix="og: https://ogp.me/ns#">
<meta charset="utf-8" />
<meta name="generator" content="gh:importantimport/urara" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/assets/apple-touch-icon.png" />
<link rel="icon" href="%sveltekit.assets%/assets/maskable@192.png" />
<link rel="manifest" crossorigin="use-credentials" href="/manifest.webmanifest" />
<link rel="alternate" type="application/feed+json" href="/feed.json" />
<link rel="alternate" type="application/atom+xml" href="/atom.xml" />
<link rel="sitemap" type="application/xml" href="/sitemap.xml" />
%sveltekit.head%
</head>
<body itemscope itemtype="https://schema.org/WebPage" data-sveltekit-prefetch>
<script>
const themeLocalStorageKey = 'theme'
if (
!!localStorage.getItem(themeLocalStorageKey)
? localStorage.getItem(themeLocalStorageKey) === 'dark'
: window.matchMedia('(prefers-color-scheme: dark)').matches
) {
document.body.classList.add('dark')
} else {
document.body.classList.add('light')
}
</script>
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

View File

@ -45,8 +45,8 @@ h6 {
@font-face {
font-family: 'Orbitron-Variable';
src:
url('assets/fonts/Orbitron-VariableFont_wght.woff') format('woff'),
url('assets/fonts/Orbitron-VariableFont_wght.ttf') format('truetype');
url('/assets/fonts/Orbitron-VariableFont_wght.woff') format('woff'),
url('/assets/fonts/Orbitron-VariableFont_wght.ttf') format('truetype');
font-weight: 300 900;
font-display: swap;
font-style: normal;
@ -55,8 +55,8 @@ h6 {
@font-face {
font-family: 'RobotoMono-Italic-Variable';
src:
url('assets/fonts/RobotoMono-Italic-VariableFont_wght.woff') format('woff'),
url('assets/fonts/RobotoMono-Italic-VariableFont_wght.ttf') format('truetype');
url('/assets/fonts/RobotoMono-Italic-VariableFont_wght.woff') format('woff'),
url('/assets/fonts/RobotoMono-Italic-VariableFont_wght.ttf') format('truetype');
font-weight: 300 900;
font-display: swap;
font-style: normal;
@ -65,8 +65,8 @@ h6 {
@font-face {
font-family: 'RobotoMono-VariableFont';
src:
url('assets/fonts/RobotoMono-VariableFont_wght.woff') format('woff'),
url('assets/fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
url('/assets/fonts/RobotoMono-VariableFont_wght.woff') format('woff'),
url('/assets/fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
font-weight: 300 900;
font-display: swap;
font-style: italic;