diff --git a/gridsome.server.js b/gridsome.server.js index 1ccd50f81..230670385 100644 --- a/gridsome.server.js +++ b/gridsome.server.js @@ -102,7 +102,7 @@ module.exports = function(api) { api.createPages(async({ graphql, createPage }) => { const { data } = await graphql(`{ - allProjectTag(filter: { title: {in: ["tech", "foundation"]}}) { + allProjectTag(filter: { title: {in: ["foundation"]}}) { edges { node { id diff --git a/src/components/custom/TagFilterHeader.vue b/src/components/custom/TagFilterHeader.vue index 7feca92ab..30558e108 100644 --- a/src/components/custom/TagFilterHeader.vue +++ b/src/components/custom/TagFilterHeader.vue @@ -1,5 +1,5 @@ @@ -104,21 +105,22 @@ export default { active: null, }; }, - methods: { setActive(index) { - this.active = index; + this.active = !this.active; this.open = !this.open; }, close(e) { if (!this.$el.contains(e.target)) { this.open = false; + this.active = !this.active; } }, resetAll() { this.$emit("resetAll", true); }, }, + mounted() { document.addEventListener("click", this.close); }, diff --git a/src/templates/Partners.vue b/src/templates/Partners.vue index 6601b8833..8022fcc59 100644 --- a/src/templates/Partners.vue +++ b/src/templates/Partners.vue @@ -16,7 +16,7 @@ query ($private: Int){ - entries: allProject (sortBy: "rank", order: DESC, filter: { private: { ne: $private }, tags: { id: {in: ["tech", "foundation"]}}}){ + entries: allProject (sortBy: "rank", order: DESC, filter: { private: { ne: $private }, tags: { id: {in: ["blockchain", "experience", "technology", "farming", "community", "infrastructure", "impact"]}}}){ totalCount edges { node { @@ -39,17 +39,16 @@ query ($private: Int){ } } - tags: allProjectTag (filter: { title: {in: ["tech", "foundation"]}}) { + tags: allProjectTag (filter: { title: {in: ["foundation"]}}) { edges{ node{ id title path } + } } } - -} diff --git a/src/templates/People.vue b/src/templates/People.vue deleted file mode 100644 index 2478d83e8..000000000 --- a/src/templates/People.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - -query ($private: Int){ - entries: allPerson (sortBy: "rank", order: DESC, filter: { private: { ne: $private }}){ - totalCount - edges { - node { - path - content - name - rank - bio - linkedin - websites - countries - cities - image(width:800) - private - } - } - } - - memberships: allMembership{ - edges{ - node{ - id - title - path - } - } - } -} - - - - diff --git a/src/templates/Projects.vue b/src/templates/Projects.vue deleted file mode 100644 index 4f1247bc2..000000000 --- a/src/templates/Projects.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - -query ($private: Int){ - entries: allProject (sortBy: "rank", order: DESC, filter: { private: { ne: $private }}, tags: { id: {in: ["tech", "foundation"]}}){ - totalCount - edges { - node { - title - path - members { - id - name - image(width:64, height:64, fit:inside) - path - }, - rank - linkedin - excerpt - image(width:800) - path - timeToRead - logo - } - } - } - - memberships: allProjectTag{ - edges{ - node{ - id - title - path - } - } - } -} - - - -