From 2881f8211aaaa2def3f3cedabf635f03733ac82e Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Fri, 4 Oct 2019 19:49:45 +0200 Subject: Added customizable og-metadata to notes Signed-off-by: Erik Michelson --- public/views/codimd/head.ejs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/views/codimd/head.ejs') diff --git a/public/views/codimd/head.ejs b/public/views/codimd/head.ejs index e3edde66..e2f0375c 100644 --- a/public/views/codimd/head.ejs +++ b/public/views/codimd/head.ejs @@ -4,6 +4,10 @@ +<% for (var og in opengraph) { %> +<% if (opengraph.hasOwnProperty(og) && opengraph[og].trim() !== '') { %> + +<% }} %> <%= title %> -- cgit v1.2.3 From f26f48793fdf5bb81f4bec5d7c50e5fe1ba978d6 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Tue, 8 Oct 2019 21:11:01 +0200 Subject: Fixed bugs, added default image Signed-off-by: Erik Michelson --- public/views/codimd/head.ejs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'public/views/codimd/head.ejs') 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 @@ <% for (var og in opengraph) { %> <% if (opengraph.hasOwnProperty(og) && opengraph[og].trim() !== '') { %> - -<% }} %> + +<% }} if (!opengraph.hasOwnProperty('image')) { %> + + + +<% } %> <%= title %> -- cgit v1.2.3