Adding basic meta tags. (#565)
* Adding basic meta tags. * Update index.html * Changing description. * Added meta to 404error
This commit is contained in:
parent
c9192857cb
commit
ae1e13fd11
3 changed files with 9 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="keywords" content="p5.js, p5.js web editor, web editor, processing, code editor" />
|
||||
<meta name="description" content="A web editor for sketching using p5.js library." />
|
||||
<title>p5.js Web Editor</title>
|
||||
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
|
||||
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
|
||||
|
|
|
@ -42,6 +42,9 @@ export function get404Sketch(callback) {
|
|||
const html = htmlFile.split('</head>');
|
||||
html[0] = `
|
||||
${html[0]}
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="keywords" content="p5.js, p5.js web editor, web editor, processing, code editor" />
|
||||
<meta name="description" content="A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners." />
|
||||
<title>404 Page Not Found - p5.js Web Editor</title>
|
||||
<style>
|
||||
.header {
|
||||
|
|
|
@ -6,6 +6,9 @@ export function renderIndex() {
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="keywords" content="p5.js, p5.js web editor, web editor, processing, code editor" />
|
||||
<meta name="description" content="A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners." />
|
||||
<title>p5.js Web Editor</title>
|
||||
${process.env.NODE_ENV === 'production' ? `<link rel='stylesheet' href='/dist${assetsManifest['/app.css']}' />` : ''}
|
||||
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
|
||||
|
|
Loading…
Reference in a new issue