Sort by rank

This commit is contained in:
samaradel
2021-04-07 12:42:13 +02:00
parent 861dbc3146
commit 11f27619eb
3 changed files with 13 additions and 13 deletions

View File

@@ -1,6 +1,10 @@
<template>
<Layout>
<TagFilterHeader :tags="tags" selected="all" v-if="$page.tags.edges.length > 1"/>
<TagFilterHeader
:tags="tags"
selected="all"
v-if="$page.tags.edges.length > 1"
/>
<div class="container mt-8 sm:pxi-0 mx-auto overflow-x-hidden">
<div class="flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4">
<PostListItem
@@ -16,7 +20,7 @@
<page-query>
query ($private: Int){
entries: allProject (sortBy: "rank", order: DESC, filter: { private: { ne: $private }, tags: { id: {in: ["blockchain", "experience", "technology", "farming", "community", "infrastructure", "impact"]}}}){
entries: allProject (sortBy: "rank", order: ASC, filter: { private: { ne: $private }, category: { contains: ["foundation"]}}){
totalCount
edges {
node {