feat: add charset and viewport meta tags (#77)

pull/79/head
Kia King Ishii 4 years ago committed by GitHub
parent d2b6d39228
commit 2e8e1f57cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,6 +33,14 @@ export function useUpdateHead(
const pageTitle = pageData && pageData.title
document.title = (pageTitle ? pageTitle + ` | ` : ``) + siteData.title
updateHeadTags([
['meta', { charset: 'utf-8' }],
[
'meta',
{
name: 'viewport',
content: 'width=device-width,initial-scale=1'
}
],
[
'meta',
{

@ -56,6 +56,8 @@ export async function renderPage(
const html = `
<html lang="${siteData.lang}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>${pageData.title ? pageData.title + ` | ` : ``}${
siteData.title
}</title>

Loading…
Cancel
Save