frontmatter array (has_*) should be reversed so it doesn't change the
order after edit...
This commit is contained in:
parent
8386ab5dcf
commit
5cc949c5a2
|
@ -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}[]`)
|
||||
|
|
Loading…
Reference in New Issue