-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.js
69 lines (68 loc) · 2.12 KB
/
theme.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
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
66
67
68
69
const YEAR = new Date().getFullYear()
export default {
head: ({ meta }) => {
return (
<>
<meta name="author" content="Shu Ding" />
<link rel="canonical" href="https://shud.in" />
<meta name="title" content={meta.title} />
<meta property="description" content={meta.description} />
<meta property="og:type" content="website" />
<meta property="og:title" content={meta.title} />
<meta property="og:description" content={meta.description} />
<meta property="og:url" content="https://shud.in" />
<meta
property="og:image"
content={meta.image || "https://shud.in/logo.png"}
/>
<meta
property="twitter:card"
content={meta.image ? "summary_large_image" : "summary"}
/>
<meta property="twitter:site" content="@shuding_" />
<meta property="twitter:title" content={meta.title} />
<meta property="twitter:description" content={meta.description} />
<meta property="twitter:url" content="https://shud.in" />
<meta
property="twitter:image"
content={meta.image || "https://shud.in/logo.png"}
/>
</>
)
},
footer: (
<div>
<hr />
<a href="https://twitter.com/shuding_" target="_blank">
Twitter
</a>{" "}
·{" "}
<a href="https://github.com/shuding" target="_blank">
GitHub
</a>{" "}
·{" "}
<a href="https://instagram.com/_shuding" target="_blank">
Instagram
</a>{" "}
·{" "}
<a href="mailto:[email protected]" target="_blank">
</a>
<small style={{ display: "block", marginTop: "8rem" }}>
<abbr
title="This site and all its content are licensed under a Creative Commons Attribution-NonCommercial 4.0 International License."
style={{ cursor: "help" }}
>
CC BY-NC 4.0
</abbr>{" "}
<time>{YEAR}</time> © Shu Ding.
<a href="/feed.xml">RSS</a>
<style jsx>{`
a {
float: right;
}
`}</style>
</small>
</div>
),
}