Skip to content

Commit ad46f52

Browse files
cleanup meta in index.html and move to greenwood config (#118)
1 parent 71b3def commit ad46f52

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

greenwood.config.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
const path = require('path');
22

3+
const META_DESCRIPTION = 'A modern and performant static site generator supporting Web Component based development';
4+
35
module.exports = {
46
workspace: path.join(__dirname, 'www'),
57
title: 'Greenwood',
68
meta: [
7-
{ property: 'og:site', content: 'greenwood' },
8-
{ name: 'twitter:site', content: '@PrjEvergreen' }
9+
{ name: 'description', content: META_DESCRIPTION },
10+
{ name: 'twitter:site', content: '@PrjEvergreen' },
11+
{ property: 'og:tile', content: 'Greenwood' },
12+
{ property: 'og:type', content: 'website' },
13+
{ property: 'og:url', content: 'https://www.greenwoodjs.io' },
14+
{ property: 'og:image', content: 'https://s3.amazonaws.com/hosted.greenwoodjs.io/greenwood-logo.png' },
15+
{ property: 'og:description', content: META_DESCRIPTION }
916
]
1017
};

packages/cli/templates/index.html

-12
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,10 @@
44
<title>My App</title>
55

66
<meta charset='utf-8'>
7-
<meta name='description' content='Greenwood'/>
87
<meta name='viewport' content='width=device-width, initial-scale=1'/>
98
<meta name='mobile-web-app-capable' content='yes'/>
109
<meta name='apple-mobile-web-app-capable' content='yes'/>
1110
<meta name='apple-mobile-web-app-status-bar-style' content='black'/>
12-
<meta name="description" content="A modern and performant static site generator supporting Web Component based development."/>
13-
<!-- <link rel="manifest" href="/icons/manifest.json"> -->
14-
15-
<meta property="og:title" content="Greenwood" />
16-
<meta property="og:type" content="website" />
17-
<meta property="og:url" content="https://project-evergreen.thegreenhouse.io/" />
18-
<meta property="og:image" content="https://s3.amazonaws.com/uploads.thegreenhouse.io/project-evergreen/logo.jpg" />
19-
<meta property="og:description" content="A modern and performant static site generator supporting Web Component based development." />
20-
21-
<!-- Load GoogleFonts here -->
22-
<!-- <link href="//fonts.googleapis.com/css?family=Raleway" rel="stylesheet"> -->
2311

2412
<!-- Add forwards compatibility for ES5 transpiled web components -->
2513
<!-- https://github.com/Polymer/lit-element/issues/72#issuecomment-390894353 -->

0 commit comments

Comments
 (0)