frontmatter array (has_*) should be reversed so it doesn't change the

order after edit...
This commit is contained in:
Marcell Mars 2021-03-28 03:19:34 +02:00
parent 8386ab5dcf
commit 5cc949c5a2
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
Object.keys(frontmatter).forEach((fm)=>{
if (Array.isArray(frontmatter[fm])) {
console.log("Array:", frontmatter[fm])
frontmatter[fm].forEach((i)=>{
frontmatter[fm].reverse().forEach((i)=>{
var input = document.createElement('input')
input.setAttribute('type', 'text')
input.setAttribute('name', `${fm}[]`)