-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-browser.js
More file actions
37 lines (32 loc) · 945 Bytes
/
gatsby-browser.js
File metadata and controls
37 lines (32 loc) · 945 Bytes
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
// custom typefaces
import "@fontsource-variable/montserrat"
import "@fontsource/merriweather"
// normalize CSS across browsers
import "./src/normalize.css"
// custom CSS styles
import "prismjs/themes/prism-twilight.css"
import "./src/global.css"
import "./src/styles/code-highlight.css"
import "./src/styles/image.css"
import "./src/styles/sidebar.css"
import "./src/styles/table.css"
import "./src/styles/typography.css"
// Highlighting for code blocks
import "remark-admonitions/styles/classic.css"
import { config } from "@fortawesome/fontawesome-svg-core"
import "@fortawesome/fontawesome-svg-core/styles.css"
import { trackVisitor } from "./src/lib/trackVisitor"
config.autoAddCss = false
// 조회수 추적
/**
* 초기 페이지 로드 시 조회수 추적
*/
export const onInitialClientRender = () => {
trackVisitor()
}
/**
* 페이지 이동 시 조회수 추적
*/
export const onRouteUpdate = () => {
trackVisitor()
}