From 09cd24315d1c89d9b525882f001bdbe4ac104290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Weller?= Date: Sat, 15 Jun 2019 00:38:20 +0200 Subject: [PATCH] add octocat and project reference --- components/Card.vue | 1 - components/Github.vue | 28 ++++++++++++++++++++++++++++ layouts/default.vue | 3 +++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 components/Github.vue diff --git a/components/Card.vue b/components/Card.vue index 9a99fb2..9e3738a 100644 --- a/components/Card.vue +++ b/components/Card.vue @@ -15,7 +15,6 @@ export default { async createCopyUrl() { try { let currentPath = this.$router.history.current.path - let reference = this.createReferenceTag(this.$props.title) await this.$copyText(`https://webgems.io${currentPath}?card=${reference}`) diff --git a/components/Github.vue b/components/Github.vue new file mode 100644 index 0000000..1f55820 --- /dev/null +++ b/components/Github.vue @@ -0,0 +1,28 @@ + + diff --git a/layouts/default.vue b/layouts/default.vue index a546b3c..badd85c 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,17 +1,20 @@