-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-ssr.js
34 lines (31 loc) · 1.67 KB
/
gatsby-ssr.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
import React from "react";
const HtmlAttributes = {
lang: "en"
}
const HeadComponents = [
// Meta Tags
<meta key="httpEquiv" httpEquiv="X-UA-Compatible" content="IE=edge" />,
<meta key="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />,
<meta key="keywords" name="keywords" content="React Gatsby Template Vie Multi-Purpose themeforest" />,
<meta key="description" name="description" content="Vie - Onepage Multi-Purpose React Gatsby Template" />,
<meta key="author" name="author" content="ThemesCamp" />,
// Google Fonts
<link key="Poppins" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap" />,
<link key="Montserrat" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@100;200;300;400;500;600;700;800;900&display=swap" />,
// Styles
<link key="ionicons" rel="stylesheet" href="/css/ionicons.min.css" />,
<link key="styles-light" rel="stylesheet" href="/css/light.css" />,
<link key="styles-dark" rel="stylesheet" href="/css/dark.css" />,
// Icon
<link key="icon" rel="shortcut icon" href="/img/favicon.ico" title="Favicon" sizes="16x16" />,
// Scripts
<script key="isotope" src="/js/isotope.pkgd.min.js"></script>,
<script key="pace" src="/js/pace.min.js"></script>,
<script key="splitting" src="/js/splitting.min.js"></script>,
<script key="simpleParallax" src="/js/simpleParallax.min.js"></script>,
<script key="wow" src="/js/wow.min.js"></script>,
]
export const onRenderBody = ({ setHeadComponents, setHtmlAttributes }) => {
setHtmlAttributes(HtmlAttributes);
setHeadComponents(HeadComponents);
}