diff --git a/public/views/codimd/head.ejs b/public/views/codimd/head.ejs
index e2f0375c2..934767f64 100644
--- a/public/views/codimd/head.ejs
+++ b/public/views/codimd/head.ejs
@@ -6,8 +6,12 @@
<% for (var og in opengraph) { %>
<% if (opengraph.hasOwnProperty(og) && opengraph[og].trim() !== '') { %>
-
-<% }} %>
+
+<% }} if (!opengraph.hasOwnProperty('image')) { %>
+
+
+
+<% } %>
<%= title %>
diff --git a/public/views/index/head.ejs b/public/views/index/head.ejs
index 400e2e593..0f1e584e0 100644
--- a/public/views/index/head.ejs
+++ b/public/views/index/head.ejs
@@ -9,12 +9,10 @@
-<% if (serverURL !== "") { %>
-
+
-<% } %>
CodiMD - <%= __('Collaborative markdown notes') %>
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs
index 5f18ea8b3..20bb44e31 100644
--- a/public/views/pretty.ejs
+++ b/public/views/pretty.ejs
@@ -17,7 +17,11 @@
<% for (var og in opengraph) { %>
<% if (opengraph.hasOwnProperty(og) && opengraph[og].trim() !== '') { %>
- <% }} %>
+ <% }} if (!opengraph.hasOwnProperty('image')) { %>
+
+
+
+ <% } %>
<%= title %>