add charset utf-8
This commit is contained in:
parent
4de35f3b70
commit
bcca548d46
6 changed files with 21 additions and 5 deletions
|
@ -10,6 +10,8 @@ import { MyCounter } from '../components/my-counter.js';
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<title>Demo</title>
|
||||
</head>
|
||||
|
|
|
@ -7,9 +7,8 @@ const { content } = Astro.props;
|
|||
<html lang={content.lang || 'en'}>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
|
||||
<title>{content.title}</title>
|
||||
<style>
|
||||
.nav {
|
||||
|
|
|
@ -7,9 +7,8 @@ const { content } = Astro.props;
|
|||
<html lang={content.lang || 'en'}>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
|
||||
<title>{content.title}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
14
examples/with-tailwindcss/src/layouts/main.astro
Normal file
14
examples/with-tailwindcss/src/layouts/main.astro
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
const { content } = Astro.props;
|
||||
---
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<title>{content.title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
|
@ -8,7 +8,8 @@ import Button from '../components/Button.astro';
|
|||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<title>Astro + TailwindCSS</title>
|
||||
</head>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: 'Markdown + Tailwind'
|
||||
layout: ../layouts/main.astro
|
||||
setup: |
|
||||
import Button from '../components/Button.astro';
|
||||
---
|
||||
|
|
Loading…
Reference in a new issue