make the css imports part of the svelte template
This commit is contained in:
parent
95646cebd8
commit
ec63a80d42
@ -4,10 +4,6 @@
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" href="/bulma/bulma.css" />
|
||||
<link rel="stylesheet" href="/fonts/faktos.css">
|
||||
<link rel="stylesheet" href="/fonts/dosis/dosis.css">
|
||||
<link rel='stylesheet' href='/global.css'>
|
||||
%svelte.head%
|
||||
</head>
|
||||
<body>
|
||||
|
@ -1,6 +1,20 @@
|
||||
<App />
|
||||
|
||||
<script>
|
||||
import App from '../components/App.svelte';
|
||||
</script>
|
||||
<svelte:head>
|
||||
{#each stylesheets as href (href)}
|
||||
<link rel="stylesheet" {href} />
|
||||
{/each}
|
||||
</svelte:head>
|
||||
|
||||
<script>
|
||||
import { base } from "$app/paths";
|
||||
import App from "../components/App.svelte";
|
||||
|
||||
const stylesheets = [
|
||||
"/bulma/bulma.css",
|
||||
"/fonts/faktos.css",
|
||||
"/fonts/dosis/dosis.css",
|
||||
"/global.css",
|
||||
].map((ss) => base + ss);
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user