Skip to content

Commit 40e7744

Browse files
committed
add open graph
1 parent 7e4def2 commit 40e7744

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

themes/aircloud/layout/_partial/head.ejs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
<head>
2+
<% if (page?.og){ %>
3+
<% if (page?.og?.image){ %>
4+
<meta name="twitter:card" content="summary_large_image">
5+
<meta name="twitter:site" content="@YNizry">
6+
<meta name="og:image" content="https://yaniv-git.github.io<%= page?.og?.image %>">
7+
<meta name="twitter:image" content="https://yaniv-git.github.io<%= page?.og?.image %>">
8+
<% } %>
9+
<% if (page?.og?.title){ %>
10+
<meta name="og:title" content="<%= page?.og?.title %>">
11+
<meta name="twitter:title" content="<%= page?.og?.title %>">
12+
<% } %>
13+
<% if (page?.og?.description){ %>
14+
<meta name="og:description" content="<%= page?.og?.description %>">
15+
<meta name="twitter:description" content="<%= page?.og?.description %>">
16+
<% } %>
17+
<% } %>
218
<meta charset="utf-8">
319
<meta http-equiv="X-UA-Compatible" content="IE=edge">
420
<meta name="viewport" content="width=device-width, initial-scale=1">
5-
<meta property="og:description" content="<%= config.description %>">
21+
<!--meta property="og:description" content="<%= config.description %>"-->
622
<meta property="og:type" content="website">
723
<meta name="description" content="<%= config.description %>">
824
<meta name="keyword" content="<%= config.keyword %>">

0 commit comments

Comments
 (0)