Adding basic meta tags. (#565)

* Adding basic meta tags.

* Update index.html

* Changing description.

* Added meta to 404error
This commit is contained in:
Himanshu 2018-03-09 02:46:48 +05:30 committed by Cassie Tarakajian
parent c9192857cb
commit ae1e13fd11
3 changed files with 9 additions and 0 deletions

View file

@ -1,6 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <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> <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=Inconsolata' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

View file

@ -42,6 +42,9 @@ export function get404Sketch(callback) {
const html = htmlFile.split('</head>'); const html = htmlFile.split('</head>');
html[0] = ` html[0] = `
${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> <title>404 Page Not Found - p5.js Web Editor</title>
<style> <style>
.header { .header {

View file

@ -6,6 +6,9 @@ export function renderIndex() {
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <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> <title>p5.js Web Editor</title>
${process.env.NODE_ENV === 'production' ? `<link rel='stylesheet' href='/dist${assetsManifest['/app.css']}' />` : ''} ${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'> <link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>