fix share preview images (#3)

Co-authored-by: nikurasu <publicmail@nikurasu.gay>
Reviewed-on: #3
This commit is contained in:
Nikurasu 2023-05-19 07:46:46 +02:00
parent 6b9fbc0316
commit ce874eec4f

View file

@ -1,24 +1,35 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous"> <link
<link rel="stylesheet" href="style/<%= theme %>.css"> rel="stylesheet"
<% if(theme === '98') { %> href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css"
<link rel="stylesheet" href="https://unpkg.com/98.css"> integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY="
<% } %> crossorigin="anonymous"
<% if(roundPB) { %> />
<link rel="stylesheet" href="style/round-pb.css"> <link rel="stylesheet" href="style/<%= theme %>.css" />
<% } %> <% if(theme === '98') { %>
<title><%= name %> - SocialTree</title> <link rel="stylesheet" href="https://unpkg.com/98.css" />
<meta property="og:title" content="<%= name %> - SocialTree"> <% } %> <% if(roundPB) { %>
<meta property="og:image" content="img/<%= filenameProfilePic %>"> <link rel="stylesheet" href="style/round-pb.css" />
<meta property="description" content="<%= metaDescription %>"> <% } %>
<meta property="og:description" content="<%= metaDescription %>"> <title><%= name %> - SocialTree</title>
<meta property="og:site_name" content="<%= siteName %>"> <meta property="og:title" content="<%= name %> - SocialTree" />
<meta property="og:url" content="<%= url %>"> <meta
<meta property="twitter:image:src" content="img/<%= filenameProfilePic %>"> property="og:image"
<meta property="twitter:card" content="summary"> content="<%= url %>/img/<%= filenameProfilePic %>"
<meta property="twitter:title" content="<%= name %> - SocialTree"> />
<meta property="twitter:description" content="<%= metaDescription %>"> <meta property="description" content="<%= metaDescription %>" />
</head> <meta property="og:description" content="<%= metaDescription %>" />
<meta property="og:site_name" content="<%= siteName %>" />
<meta property="og:url" content="<%= url %>" />
<meta
property="twitter:image:src"
content="<%= url %>/img/<%= filenameProfilePic %>"
/>
<meta property="twitter:card" content="summary" />
<meta property="twitter:title" content="<%= name %> - SocialTree" />
<meta property="twitter:description" content="<%= metaDescription %>" />
</head>
</html>