Update content from team to people

This commit is contained in:
samaradel
2021-04-12 14:55:38 +02:00
parent e666655084
commit 8480012e6d
7 changed files with 22 additions and 22 deletions

View File

@@ -73,8 +73,8 @@ items:
link: /news link: /news
- name: Forum - name: Forum
link: https://forum.threefold.io/ link: https://forum.threefold.io/
- name: Team - name: People
link: /team link: /people
- name: Contact Us - name: Contact Us
link: 'mailto:info@threefold.io' link: 'mailto:info@threefold.io'
--- ---

View File

@@ -123,8 +123,8 @@ navLinks:
path: https://forum.threefold.io path: https://forum.threefold.io
external: true external: true
- title: Team - title: People
path: /team path: /people
- title: Contact Us - title: Contact Us
path: "mailto:info@threefold.io" path: "mailto:info@threefold.io"

View File

@@ -7,8 +7,8 @@
module.exports = { module.exports = {
siteName: 'ThreeFold', siteName: 'ThreeFold',
pathPrefix: "threefold", pathPrefix: "threefold",
plugins: [ plugins: [
// Local models // Local models
{ {
@@ -460,7 +460,7 @@ module.exports = {
}], }],
Membership: [{ Membership: [{
path: '/team/memberships/:id', path: '/people/memberships/:id',
component: '~/templates/Membership.vue' component: '~/templates/Membership.vue'
}], }],
@@ -475,11 +475,11 @@ module.exports = {
}], }],
Person: [{ Person: [{
path: '/team/:id', path: '/people/:id',
component: '~/templates/Person.vue' component: '~/templates/Person.vue'
}], }],
PersonTag: [{ PersonTag: [{
path: '/team/tags/:id', path: '/people/tags/:id',
component: '~/templates/Tag.vue' component: '~/templates/Tag.vue'
}], }],
@@ -496,8 +496,8 @@ module.exports = {
externalLinksRel: ['nofollow', 'noopener', 'noreferrer'], externalLinksRel: ['nofollow', 'noopener', 'noreferrer'],
anchorClassName: 'icon icon-link', anchorClassName: 'icon icon-link',
pathPrefix: "threefold", pathPrefix: "threefold",
plugins: [ plugins: [
['gridsome-plugin-remark-prismjs-all', { ['gridsome-plugin-remark-prismjs-all', {
highlightClassName: "gridsome-highlight", highlightClassName: "gridsome-highlight",
codeTitleClassName: "gridsome-code-title", codeTitleClassName: "gridsome-code-title",

View File

@@ -184,8 +184,8 @@ module.exports = function(api) {
api.createPages(({ createPage }) => { api.createPages(({ createPage }) => {
createPage({ createPage({
path: '/team', path: '/people',
component: './src/templates/Team.vue', component: './src/templates/People.vue',
context: { context: {
private: private private: private
} }

View File

@@ -88,7 +88,7 @@ export default {
computed: { computed: {
memberships() { memberships() {
var res = [{ title: "All", path: "/team" }]; var res = [{ title: "All", path: "/people" }];
this.$page.allMembership.edges.forEach((edge) => this.$page.allMembership.edges.forEach((edge) =>
res.push({ title: edge.node.title, path: edge.node.path }) res.push({ title: edge.node.title, path: edge.node.path })
); );

View File

@@ -68,7 +68,7 @@ export default {
}, },
computed: { computed: {
memberships() { memberships() {
var res = [{ title: "All", path: "/team" }]; var res = [{ title: "All", path: "/people" }];
this.$page.memberships.edges.forEach((edge) => this.$page.memberships.edges.forEach((edge) =>
res.push({ title: edge.node.title, path: edge.node.path }) res.push({ title: edge.node.title, path: edge.node.path })
); );

View File

@@ -50,11 +50,11 @@
</div> </div>
</div> </div>
<g-link <g-link
v-for="edge in $page.memberships.edges" v-for="membership in $page.person.memberships"
:key="edge.node.id" :key="membership.id"
:to="edge.node.path" :to="membership.path"
class="text-xs bg-transparent hover:text-blue-700 py-2 px-4 mr-2 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full" class="text-xs bg-transparent hover:text-blue-700 py-2 px-4 mr-2 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full"
>{{ edge.node.title }}</g-link >{{ membership.title }}</g-link
> >
</section> </section>
</div> </div>
@@ -148,7 +148,7 @@
} }
} }
memberships: allMembership(filter: {title: {in: ["foundation", "tech", "farmers", "ambassadors"]}}){ memberships: allMembership{
edges{ edges{
node{ node{
id id