mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-26 23:32:33 +00:00
Fixed bugs, added default image
Signed-off-by: Erik Michelson <erik@liltv.de>
This commit is contained in:
parent
8f61d840de
commit
f26f48793f
3 changed files with 12 additions and 6 deletions
|
@ -6,8 +6,12 @@
|
|||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<% for (var og in opengraph) { %>
|
||||
<% if (opengraph.hasOwnProperty(og) && opengraph[og].trim() !== '') { %>
|
||||
<meta property="og:<%= og %>" content="<%= opengraph[og] %>">
|
||||
<% }} %>
|
||||
<meta property="og:<%- og %>" content="<%- opengraph[og] %>">
|
||||
<% }} if (!opengraph.hasOwnProperty('image')) { %>
|
||||
<meta property="og:image" content="<%- serverURL %>/codimd-icon-1024.png">
|
||||
<meta property="og:image:alt" content="CodiMD logo">
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<% } %>
|
||||
<title><%= title %></title>
|
||||
<link rel="icon" type="image/png" href="<%- serverURL %>/favicon.png">
|
||||
<link rel="apple-touch-icon" href="<%- serverURL %>/apple-touch-icon.png">
|
||||
|
|
|
@ -9,12 +9,10 @@
|
|||
<meta property="og:title" content="CodiMD - <%= __('Collaborative markdown notes') %>">
|
||||
<meta property="og:description" content="<%= __('Best way to write and share your knowledge in markdown.') %>">
|
||||
<meta property="og:type" content="website">
|
||||
<% if (serverURL !== "") { %>
|
||||
<meta property="og:url" content="<%- serverURL %>">
|
||||
<meta property="og:image" content="<%- serverURL %>/favicon.png">
|
||||
<meta property="og:image" content="<%- serverURL %>/codimd-icon-1024.png">
|
||||
<meta property="og:image:alt" content="CodiMD logo">
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<% } %>
|
||||
<title>CodiMD - <%= __('Collaborative markdown notes') %></title>
|
||||
<link rel="icon" type="image/png" href="<%- serverURL %>/favicon.png">
|
||||
<link rel="apple-touch-icon" href="<%- serverURL %>/apple-touch-icon.png">
|
||||
|
|
|
@ -17,7 +17,11 @@
|
|||
<% for (var og in opengraph) { %>
|
||||
<% if (opengraph.hasOwnProperty(og) && opengraph[og].trim() !== '') { %>
|
||||
<meta property="og:<%= og %>" content="<%= opengraph[og] %>">
|
||||
<% }} %>
|
||||
<% }} if (!opengraph.hasOwnProperty('image')) { %>
|
||||
<meta property="og:image" content="<%- serverURL %>/codimd-icon-1024.png">
|
||||
<meta property="og:image:alt" content="CodiMD logo">
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<% } %>
|
||||
<title><%= title %></title>
|
||||
<link rel="icon" type="image/png" href="<%- serverURL %>/favicon.png">
|
||||
<link rel="apple-touch-icon" href="<%- serverURL %>/apple-touch-icon.png">
|
||||
|
|
Loading…
Reference in a new issue