From 5c5ffd0a92fe3fab01e1c5400badcbd2bfc2a758 Mon Sep 17 00:00:00 2001 From: Ava Gaiety Wroten Date: Fri, 31 Dec 2021 12:25:52 -0600 Subject: [PATCH] feat: twitter feed --- components/TwitterFeed.vue | 28 ++++++++++++++++++++++++++++ nuxt.config.js | 7 +++++++ pages/index.vue | 1 + 3 files changed, 36 insertions(+) create mode 100644 components/TwitterFeed.vue diff --git a/components/TwitterFeed.vue b/components/TwitterFeed.vue new file mode 100644 index 0000000..dfbc79a --- /dev/null +++ b/components/TwitterFeed.vue @@ -0,0 +1,28 @@ + diff --git a/nuxt.config.js b/nuxt.config.js index 2c04445..e51e768 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -110,6 +110,13 @@ export default { }, { rel: 'manifest', href: '/icon/manifest.json' }, ], + script: [ + { + hid: 'twitter', + defer: true, + src: 'https://platform.twitter.com/widgets.js', + }, + ], }, router: { diff --git a/pages/index.vue b/pages/index.vue index abc2d59..4592498 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -16,6 +16,7 @@ :next-page-token="nextPageToken" /> +