frontmatter array (has_*) should be reversed so it doesn't change the
order after edit...
This commit is contained in:
parent
8386ab5dcf
commit
5cc949c5a2
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
||||||
Object.keys(frontmatter).forEach((fm)=>{
|
Object.keys(frontmatter).forEach((fm)=>{
|
||||||
if (Array.isArray(frontmatter[fm])) {
|
if (Array.isArray(frontmatter[fm])) {
|
||||||
console.log("Array:", frontmatter[fm])
|
console.log("Array:", frontmatter[fm])
|
||||||
frontmatter[fm].forEach((i)=>{
|
frontmatter[fm].reverse().forEach((i)=>{
|
||||||
var input = document.createElement('input')
|
var input = document.createElement('input')
|
||||||
input.setAttribute('type', 'text')
|
input.setAttribute('type', 'text')
|
||||||
input.setAttribute('name', `${fm}[]`)
|
input.setAttribute('name', `${fm}[]`)
|
||||||
|
|
Loading…
Add table
Reference in a new issue