diff --git a/content/site/navigation.json b/content/site/navigation.json index f84ffb24e..6aaadd18e 100644 --- a/content/site/navigation.json +++ b/content/site/navigation.json @@ -10,6 +10,11 @@ "link": "/people", "external": false }, + { + "name": "Overview", + "link": "/overview", + "external": false + }, { "name": "News", "link": "/news", diff --git a/gridsome.server.js b/gridsome.server.js index 7a852d384..7c8035f37 100644 --- a/gridsome.server.js +++ b/gridsome.server.js @@ -87,6 +87,16 @@ module.exports = function (api) { }) }) + api.createPages(({ createPage }) => { + createPage({ + path: '/overview', + component: './src/templates/Overview.vue', + context: { + private: private + } + }) + }) + api.createPages(async ({ graphql, createPage diff --git a/src/templates/Overview.vue b/src/templates/Overview.vue new file mode 100644 index 000000000..3641b403e --- /dev/null +++ b/src/templates/Overview.vue @@ -0,0 +1,67 @@ + + + + +query ($private: Int){ + entries: allProject (sortBy: "rank", order: DESC, filter: { private: { ne: $private }}){ + totalCount + edges { + node { + title + path + members { + id + name + image(width:64, height:64, fit:inside) + path + }, + tags { + id + title + path + } + rank + linkedin + startDate : startdate(format:"MM YYYY") + humanTime : created(format:"DD MMMM YYYY") + datetime : created(format:"ddd MMM DD YYYY hh:mm:ss zZ") + status + excerpt + image(width:800) + path + timeToRead + + } + } + } +} + + + +