small fixes

This commit is contained in:
teldra 2022-04-10 14:54:59 +02:00
parent 8263c43958
commit fd782b9183

View File

@ -130,8 +130,12 @@ function showInput(e) {
if (title && content) {
display.innerHTML += "---<br>";
display.innerHTML += "title: \"" + title + "\"<br>";
display.innerHTML += "date: " + datestring + "<br>";
if (lastmod) {
display.innerHTML += "lastmod: " + lastmod + "<br>";
} else {
display.innerHTML += "date: " + datestring + "<br>";
}
if (featured != '') {
display.innerHTML += "featured: true<br>";
}
@ -165,9 +169,7 @@ function showInput(e) {
if (price) {
display.innerHTML += "price: \"" + price + "\"<br>";
}
if (lastmod) {
display.innerHTML += "lastmod: " + lastmod + "<br>";
}
if (contact) {
display.innerHTML += "contact: \"" + contact + "\"<br>";
}