Skip to content

Commit 81134f0

Browse files
authored
Add twitter meta (#46)
1 parent f82e26f commit 81134f0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • themes/OpenSouceWin/layout/_partial

themes/OpenSouceWin/layout/_partial/head.ejs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@
5757
<% } else { %>
5858
<meta property="og:type" content="website"/>
5959
<% } %>
60+
61+
<meta name="twitter:site" content="<%= config.title %>">
62+
<meta name="twitter:card" content="summary_large_image">
63+
<meta name="twitter:title" content="<%= title.join(' - ') %>">
64+
<% if (description) { %>
65+
<meta name="twitter:description" content="<%= description %>">
66+
<% } %>
67+
<meta name="twitter:image" content="https://raw.githubusercontent.com/OpenSourceWin/OpenSourceWin.github.io/main/themes/OpenSouceWin/source/img/banner-index.png">
68+
6069
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
6170
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
6271
<%- favicon_tag('img/favicon.ico') %>

0 commit comments

Comments
 (0)