mirror of https://github.com/sveltejs/svelte
parent
57d5d67ebe
commit
fd2b3e4daf
@ -0,0 +1,5 @@
|
||||
<svelte:head>
|
||||
<!-- elements go here -->
|
||||
</svelte:head>
|
||||
|
||||
<h1>Hello world!</h1>
|
@ -0,0 +1,5 @@
|
||||
<svelte:head>
|
||||
<link rel="stylesheet" href="tutorial/dark-theme.css">
|
||||
</svelte:head>
|
||||
|
||||
<h1>Hello world!</h1>
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
title: <svelte:head>
|
||||
---
|
||||
|
||||
Lastly, `<svelte:head>` allows you to insert elements inside the `<head>` of your document:
|
||||
|
||||
```html
|
||||
<svelte:head>
|
||||
<link rel="stylesheet" href="tutorial/dark-theme.css">
|
||||
</svelte:head>
|
||||
```
|
||||
|
||||
> In server-side rendering (SSR) mode, contents of `<svelte:head>` are returned separately from the rest of your HTML.
|
@ -0,0 +1,5 @@
|
||||
body {
|
||||
background-color: #333;
|
||||
color: whitesmoke;
|
||||
transition: all 0.5s;
|
||||
}
|
Loading…
Reference in new issue