Skip to content

Commit

Permalink
remove default <meta name="description"> (#4686)
Browse files Browse the repository at this point in the history
* remove default <meta name="description">

* add meta description to demo app

* add descriptions everywhere

* Update .changeset/stupid-owls-provide.md

Co-authored-by: Conduitry <git@chor.date>

Co-authored-by: Conduitry <git@chor.date>
  • Loading branch information
Rich-Harris and Conduitry authored Apr 22, 2022
1 parent 51396b5 commit 7284a4a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-owls-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Remove default <meta name="description"> and add separate descriptions to each page
1 change: 0 additions & 1 deletion packages/create-svelte/templates/default/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="Svelte demo app" />
<link rel="icon" href="%svelte.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%svelte.head%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<svelte:head>
<title>About</title>
<meta name="description" content="About this app" />
</svelte:head>

<div class="content">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<svelte:head>
<title>Home</title>
<meta name="description" content="Svelte demo app" />
</svelte:head>

<section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

<svelte:head>
<title>Todos</title>
<meta name="description" content="A todo list app" />
</svelte:head>

<div class="todos">
Expand Down
1 change: 0 additions & 1 deletion packages/create-svelte/templates/skeleton/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="" />
<link rel="icon" href="%svelte.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%svelte.head%
Expand Down

0 comments on commit 7284a4a

Please sign in to comment.