-
Notifications
You must be signed in to change notification settings - Fork 34
/
meta.config.js
35 lines (33 loc) · 1.11 KB
/
meta.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const package = require('./package.json');
const title = '' || package.name;
const description = `` || package.description;
const homepage = '' || package.homepage;
const thumbnail = `${homepage}/public/thumbnail.jpg`;
module.exports = {
title,
meta: {
language: 'en',
description,
keywords: '',
author: '',
/**
* Open Graph tags optimize how your pages appear when shared on social media platform
*/
'og:title': title,
'og:description': description,
'og:url': homepage,
'og:image': thumbnail,
/**
* Similar to Open Graph tags, but specifically for Twitter. They enhance the way your content appears when shared on Twitter.
*/
'twitter:card': 'summary_large_image',
'twitter:title': title,
'twitter:description': description,
'twitter:image': thumbnail,
/**
* Use index (default) to allow indexing, or noindex for sensitive/non-public pages.
* Use follow to allow crawling of links on the page.
*/
'robots': 'index, follow',
},
};