diff --git a/package-lock.json b/package-lock.json index dec97e6a..2fabf898 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "20.4.0", + "version": "20.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "20.4.0", + "version": "20.5.0", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index d246e039..48a8e695 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "20.4.0", + "version": "20.5.0", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_data/nav.js b/src/_data/nav.js index 9289a332..29f8c865 100644 --- a/src/_data/nav.js +++ b/src/_data/nav.js @@ -23,12 +23,12 @@ const fetchAllNavigation = async () => { title: item.pages.title, permalink: item.pages.permalink, icon: item.icon, - position: item.position + sort: item.sort } : { title: item.title, permalink: item.permalink, icon: item.icon, - position: item.position + sort: item.sort } if (!menu[item.menu_location]) { @@ -39,7 +39,7 @@ const fetchAllNavigation = async () => { }) Object.keys(menu).forEach(location => { - menu[location].sort((a, b) => a.position - b.position) + menu[location].sort((a, b) => a.sort - b.sort) }) return menu