From fd782b9183a8a3030fa5afeeaacc3e72b649a85a Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 10 Apr 2022 14:54:59 +0200 Subject: [PATCH] small fixes --- themes/buha/static/js/generator.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/themes/buha/static/js/generator.js b/themes/buha/static/js/generator.js index 056ba91c..628bb177 100644 --- a/themes/buha/static/js/generator.js +++ b/themes/buha/static/js/generator.js @@ -130,8 +130,12 @@ function showInput(e) { if (title && content) { display.innerHTML += "---
"; display.innerHTML += "title: \"" + title + "\"
"; - display.innerHTML += "date: " + datestring + "
"; - + + if (lastmod) { + display.innerHTML += "lastmod: " + lastmod + "
"; + } else { + display.innerHTML += "date: " + datestring + "
"; + } if (featured != '') { display.innerHTML += "featured: true
"; } @@ -165,9 +169,7 @@ function showInput(e) { if (price) { display.innerHTML += "price: \"" + price + "\"
"; } - if (lastmod) { - display.innerHTML += "lastmod: " + lastmod + "
"; - } + if (contact) { display.innerHTML += "contact: \"" + contact + "\"
"; }