mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2024-11-25 10:01:27 +00:00
Add twitter:card to head
This commit is contained in:
parent
2efd14f549
commit
2b80ea7766
|
@ -1,17 +1,28 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="content-language" content="en">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
|
||||||
<link rel="canonical" href="https://fediverse.party">
|
|
||||||
<link rel="shortcut icon" href="<%- url_for('favicon.ico') %>">
|
<link rel="shortcut icon" href="<%- url_for('favicon.ico') %>">
|
||||||
|
<title>
|
||||||
|
<% if (page.title) { %>
|
||||||
|
<%= page.title + ' - ' + config.title %>
|
||||||
|
<% } else { %>
|
||||||
|
<%= config.title %>
|
||||||
|
<% } %>
|
||||||
|
</title>
|
||||||
<meta name="description" content="<%=config.description%>">
|
<meta name="description" content="<%=config.description%>">
|
||||||
<meta property="og:title" content="<%if (page.title) {%><%=page.title%><%} else {%><%=config.title%><%}%>">
|
<meta property="og:title" content="<%if (page.title) {%><%=page.title%><%} else {%><%=config.title%><%}%>">
|
||||||
<meta property="og:description" content="<%if (page.preview) {%><%=page.preview%><%} else {%><%=config.description%><%}%>">
|
<meta property="og:description" content="<%if (page.preview) {%><%=page.preview%><%} else {%><%=config.description%><%}%>">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:image" content="<%= config.url %>/<% if (page.path.match(/post/) && page.banner) { %><%=page.path%><%=page.banner%><% } else { %><%=config.ogImage%><% } %>" />
|
<meta property="og:image" content="<%=config.url %>/<% if (page.path.match(/post/) && page.banner) {%><%=page.path%><%=page.banner%><%} else {%><%=config.ogImage%><%}%>">
|
||||||
<meta property="og:image:width" content="558">
|
<meta property="og:image:width" content="558">
|
||||||
<meta property="og:image:height" content="270">
|
<meta property="og:image:height" content="270">
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta name="twitter:description" content="<%if (page.preview) {%><%=page.preview%><%} else {%><%=config.description%><%}%>">
|
||||||
|
<meta name="twitter:title" content="<%if (page.title) {%><%=page.title%><%} else {%><%=config.title%><%}%>">
|
||||||
|
<meta name="twitter:image" content="<%=config.url %>/<% if (page.path.match(/post/) && page.banner) {%><%=page.path%><%=page.banner%><%} else {%><%=config.ogImage%><%}%>">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<link rel="canonical" href="https://fediverse.party">
|
||||||
|
<meta name="author" content="<%=config.author%>">
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<meta name="application-name" content="FediGuide">
|
<meta name="application-name" content="FediGuide">
|
||||||
<link rel="icon" type="image/png" sizes="192x192" href="<%- url_for('img/touch/android-icon-192x192.png') %>">
|
<link rel="icon" type="image/png" sizes="192x192" href="<%- url_for('img/touch/android-icon-192x192.png') %>">
|
||||||
|
@ -35,14 +46,6 @@
|
||||||
<link rel="manifest" href="<%- url_for('manifest.json') %>">
|
<link rel="manifest" href="<%- url_for('manifest.json') %>">
|
||||||
<meta name="theme-color" content="#f4f4f4">
|
<meta name="theme-color" content="#f4f4f4">
|
||||||
|
|
||||||
<title>
|
|
||||||
<% if (page.title) { %>
|
|
||||||
<%= page.title + ' - ' + config.title %>
|
|
||||||
<% } else { %>
|
|
||||||
<%= config.title %>
|
|
||||||
<% } %>
|
|
||||||
</title>
|
|
||||||
|
|
||||||
<%- css('css/main.min.css') %>
|
<%- css('css/main.min.css') %>
|
||||||
<%- partial('_partial/svgfont') %>
|
<%- partial('_partial/svgfont') %>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue