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>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
<title>Demo</title>
|
<title>Demo</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -7,9 +7,8 @@ const { content } = Astro.props;
|
||||||
<html lang={content.lang || 'en'}>
|
<html lang={content.lang || 'en'}>
|
||||||
<head>
|
<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" />
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
|
|
||||||
<title>{content.title}</title>
|
<title>{content.title}</title>
|
||||||
<style>
|
<style>
|
||||||
.nav {
|
.nav {
|
||||||
|
|
|
@ -7,9 +7,8 @@ const { content } = Astro.props;
|
||||||
<html lang={content.lang || 'en'}>
|
<html lang={content.lang || 'en'}>
|
||||||
<head>
|
<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" />
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
|
|
||||||
<title>{content.title}</title>
|
<title>{content.title}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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">
|
<html lang="en">
|
||||||
<head>
|
<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" />
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
<title>Astro + TailwindCSS</title>
|
<title>Astro + TailwindCSS</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: 'Markdown + Tailwind'
|
title: 'Markdown + Tailwind'
|
||||||
|
layout: ../layouts/main.astro
|
||||||
setup: |
|
setup: |
|
||||||
import Button from '../components/Button.astro';
|
import Button from '../components/Button.astro';
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in a new issue