diff --git a/config.json b/config.json index 4ac1f28278..8278954f40 100644 --- a/config.json +++ b/config.json @@ -10,7 +10,8 @@ "/events": "events", "/news": "news", "/careers": "careers", - "/projects/covid19": "covid19" + "/projects/covid19": "covid19", + "/newspapers": "newspapers" }, "build": { "dirs": { diff --git a/src/components/pages/NewsPapers.vue b/src/components/pages/NewsPapers.vue new file mode 100644 index 0000000000..195bcc1d20 --- /dev/null +++ b/src/components/pages/NewsPapers.vue @@ -0,0 +1,65 @@ + + + + + +query($subsite: String, $mainPath: String) { + main: insert(path: $mainPath) { + id + title + content + fileInfo { + path + } + } + articles: allParentArticle( + sortBy: "date", order: DESC, filter: { + category: {eq: "news"}, draft: {ne: true}, tags: {contains: ["paper"]} + } + ) { + totalCount + edges { + node { + id + title + tease + external_url + date (format: "D MMMM YYYY") + path + } + } + } +} + diff --git a/src/pages/everywhere/NewsPapers.vue b/src/pages/everywhere/NewsPapers.vue new file mode 100644 index 0000000000..faf470fa48 --- /dev/null +++ b/src/pages/everywhere/NewsPapers.vue @@ -0,0 +1,59 @@ + + + + + +query { + main: insert(path: "/insert:/everywhere/newspapers/main/") { + id + title + content + fileInfo { + path + } + } + articles: allParentArticle( + sortBy: "date", order: DESC, filter: { + category: {eq: "news"}, draft: {ne: true}, tags: {contains: ["paper"]} + } + ) { + totalCount + edges { + node { + id + title + tease + external_url + date (format: "D MMMM YYYY") + path + } + } + } +} +