From 824c0a9f02aafc347d6790c363b6adb7a2176e83 Mon Sep 17 00:00:00 2001 From: Ignacio Pascual <4764217+ignapas@users.noreply.github.com> Date: Tue, 7 Jun 2022 19:52:27 +0200 Subject: [PATCH 1/4] added newsletter archive --- nuxt.config.js | 13 +++++-------- package.json | 1 + pages/news-and-events/index.vue | 22 ++++++++++++++++++++++ plugins/postscribe.js | 10 ++++++++++ yarn.lock | 12 ++++++++++++ 5 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 plugins/postscribe.js diff --git a/nuxt.config.js b/nuxt.config.js index 9686252b..7dcab9eb 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -148,16 +148,13 @@ export default { ** Plugins to load before mounting the App */ plugins: [ - '@/plugins/bootstrap', - '@/plugins/contentful', + '@/plugins/bootstrap', + '@/plugins/contentful', '@/plugins/amplify', '@/plugins/documentation-hub-redirects', - { - src: '@/plugins/system-design-components', mode: 'client' - }, - { - src: '@/plugins/tsviewer', mode: 'client' - } + { src: '@/plugins/postscribe', mode: 'client' }, + { src: '@/plugins/system-design-components', mode: 'client' }, + { src: '@/plugins/tsviewer', mode: 'client' } ], /* ** Nuxt.js dev-modules diff --git a/package.json b/package.json index f19e8c63..a145b6dc 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "marked": "^0.7.0", "nuxt": "^2.12.1", "plyr": "^3.6.3", + "postscribe": "^2.0.8", "prettier": "^1.19.1", "ramda": "^0.26.1", "redirect-ssl": "^1.4.1", diff --git a/pages/news-and-events/index.vue b/pages/news-and-events/index.vue index 7b42447a..68d05daf 100644 --- a/pages/news-and-events/index.vue +++ b/pages/news-and-events/index.vue @@ -109,6 +109,16 @@

Sign up for the SPARC Newsletter

Keep up to date with all the latest news and events from the SPARC Portal.

+
+ +

View previous Newsletters

+