diff --git a/docker-compose.yml b/docker-compose.yml index 3f4d4bd..c23de20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -84,11 +84,11 @@ services: container_name: portfolio-nuxt build: ./portfolio-nuxt # To rebuild the site and the server run this - command: bash -c "npm run build && node .output/server/index.mjs" + #command: bash -c "npm run build && node .output/server/index.mjs" # To just start the server run this #command: bash -c "node .output/server/index.mjs" # To start the server in dev mode - #command: bash -c "npm run dev -o" + command: bash -c "npm run dev -o" volumes: - portfolio-nuxt:/src/node_modules - ./portfolio-nuxt:/src diff --git a/portfolio-nuxt/pages/index.vue b/portfolio-nuxt/pages/index.vue index a8f8e66..cbeee6c 100644 --- a/portfolio-nuxt/pages/index.vue +++ b/portfolio-nuxt/pages/index.vue @@ -149,16 +149,16 @@ pub.entryTags.howpublished = "/pubs/" + pub.entryTags.howpublished } } + return pubs.sort((a,b) => (a.citationKey > b.citationKey) ? -1 : ((b.citationKey > a.citationKey) ? 1 : 0)) + /* return pubs.sort((a,b) => { - /* let aPrime = 5000 let bPrime = 5000 if(a.entryTags.year === 'forthcoming'){aPrime = 5000} else {aPrime = a.entryTags.year} if(b.entryTags.year === 'forthcoming'){bPrime = 5000} else {bPrime = b.entryTags.year} return bPrime - aPrime - */ - a.citationKey - b.citationKey }) + */ } })