-
Notifications
You must be signed in to change notification settings - Fork 0
/
commonHead.js
65 lines (60 loc) · 1.96 KB
/
commonHead.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
* Common Head
*/
const keyword = "MemoryLovers,めもらば";
const copryright = "© 2019 Memory Lovers.";
const twitterId = "@MemoryLoverz";
export default function(baseUrl) {
return {
htmlAttrs: {
prefix: "og: http://ogp.me/ns# fb: http://ogp.me/ns/ fb#"
},
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ name: "keywords", content: keyword },
{ name: "author", content: copryright },
{ name: "copyright", content: copryright },
{
name: "format-detection",
content: "telephone=no,email=no,address=no"
},
// For Android Chrome: Tab Color
{ name: "theme-color", content: "#FFFFFF" },
// For Window8/10: Shortcut Icon
{ name: "msapplication-config", content: "/browserconfig.xml" },
{ name: "msapplication-TileColor", content: "#FFFFFF" },
{ name: "msapplication-TileImage", content: "/mstile-144×144.png" },
// Twitter Card
{ name: "twitter:card", content: "summary_large_image" }, // summary, summary_large_image, app, player cards
{ name: "twitter:site", content: twitterId },
{ name: "twitter:creator", content: twitterId },
],
link: [
// Favicon
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{ rel: "shortcut icon", href: "/favicon.ico" },
// Favicon: iPhone/iPad
{
rel: "apple-touch-icon",
sizes: "180x180",
href: "/apple-touch-icon-180x180.png"
},
// Favicon: Safari
{ rel: "mask-icon", href: "/safari-icon.svg", color: "#FFFFFF" },
// Favicon: Android Chrome
{
rel: "icon",
type: "image/png",
sizes: "192×192",
href: "/android-chrome-192x192.png"
},
{ rel: "manifest", href: "/manifest.json" },
// CSS
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"
}
]
};
}