diff options
author | Erik Michelson | 2019-10-08 21:11:01 +0200 |
---|---|---|
committer | Erik Michelson | 2019-10-09 23:01:43 +0200 |
commit | f26f48793fdf5bb81f4bec5d7c50e5fe1ba978d6 (patch) | |
tree | 44ca1460d545db17209314641e89566583d398eb /public/views/codimd | |
parent | 8f61d840de0ff1a40fbb61ce9e688d9372f9117e (diff) |
Fixed bugs, added default image
Signed-off-by: Erik Michelson <erik@liltv.de>
Diffstat (limited to 'public/views/codimd')
-rw-r--r-- | public/views/codimd/head.ejs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/public/views/codimd/head.ejs b/public/views/codimd/head.ejs index e2f0375c..934767f6 100644 --- a/public/views/codimd/head.ejs +++ b/public/views/codimd/head.ejs @@ -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"> |