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/pretty.ejs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/views/pretty.ejs') diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 1970ab2f..5f18ea8b 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -14,6 +14,10 @@ <% if(typeof description !== 'undefined' && description) { %> <% } %> + <% 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/pretty.ejs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/views/pretty.ejs') diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 5f18ea8b..20bb44e3 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 %> -- cgit v1.2.3