Skip to content

Commit 42c2524

Browse files
committed
feat(opengraph): sepcify open graph properties
fixes: #2
1 parent 4080b9d commit 42c2524

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

routes/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ function preProcess(json) {
6868
json.thumbnailUri = "/images/noThumbnail.png";
6969
}
7070

71+
title = json.name;
72+
7173
return json;
7274
}
7375

views/layout.pug

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
doctype html
2-
html
2+
html(lang="en")
33
head
4-
title go.resonite.com
4+
title #{title}
5+
meta(charset='utf-8')
6+
meta(name='viewport', content='width=device-width, initial-scale=1')
57
link(rel='stylesheet' href='https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css')
68
link(rel='stylesheet' href='/stylesheets/style.css')
79
link(rel="preconnect" href="https://api.resonite.com")
810
link(rel="preconnect" href="https://assets.resonite.com")
11+
link(rel="preconnect" href="https://fonts.googleapis.com")
12+
block head
913
style.
1014
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
15+
1116
header.center
1217
img(src='/images/resonite.png')
1318
body

views/session.pug

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
extends layout
22

3+
block head
4+
meta(property="og:title" content=name)
5+
meta(property="og:type" content="resonite.session")
6+
meta(property="og:image" content=thumbnailUrl)
7+
38
block content
49
h1 !{name}
510

views/world.pug

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
extends layout
22

3+
block head
4+
meta(property="og:title" content=name)
5+
meta(property="og:type" content="resonite.world")
6+
meta(property="og:image" content=thumbnailUri)
7+
38
block content
49
h1 !{name}
510

0 commit comments

Comments
 (0)