Skip to content

Commit de985b0

Browse files
committed
template updates for og-images
1 parent fbf3bad commit de985b0

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

assets/og-template/template.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@
3131

3232
/* The main content card, also absolutely positioned */
3333
.container {
34-
position: absolute;
3534
z-index: 2; /* On top of the watermark */
36-
width: 1200px;
37-
height: 630px;
38-
padding: 50px 60px;
39-
box-sizing: border-box;
40-
display: flex; /* Flexbox for internal alignment is fine */
41-
flex-direction: column;
35+
position: absolute;
36+
top: 30px;
37+
left: 30px;
38+
width: 950px;
39+
height: 550px;
4240
}
4341

4442
.main-content {
@@ -80,13 +78,13 @@
8078
}
8179

8280
.title {
83-
font-size: 60px;
81+
font-size: 50px;
8482
font-weight: 700;
8583
line-height: 1.15;
8684
color: #1f2937;
8785
margin: 0 0 20px 0;
8886
display: -webkit-box;
89-
-webkit-line-clamp: 2;
87+
-webkit-line-clamp: 3;
9088
-webkit-box-orient: vertical;
9189
overflow: hidden;
9290
text-overflow: ellipsis;
@@ -100,7 +98,7 @@
10098
color: #4b5563;
10199
margin: 0 0 20px 0;
102100
display: -webkit-box;
103-
-webkit-line-clamp: 4;
101+
-webkit-line-clamp: 3;
104102
-webkit-box-orient: vertical;
105103
overflow: hidden;
106104
text-overflow: ellipsis;

static/images/og-image.jpg

-2.77 KB
Loading

0 commit comments

Comments
 (0)