diff --git a/package-lock.json b/package-lock.json index 7ca38e7f..2786c39f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18472,6 +18472,11 @@ } } }, + "vue-social-sharing": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/vue-social-sharing/-/vue-social-sharing-3.0.4.tgz", + "integrity": "sha512-noifuAgZIiNnsVEwGYz0kTVRdj80JkEIt1Qp1HRTLYPPQsyKVhrIMqJGVQGQjm9cp4UB51pUOxdGElMVyavvtw==" + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", diff --git a/package.json b/package.json index 8987b66e..906e31c4 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "vue-mq": "^1.0.1", "vue-multiselect": "^2.1.6", "vue-observe-visibility": "^0.4.6", + "vue-social-sharing": "^3.0.4", "vuepress-plugin-img-lazy": "^1.0.4", "vuex": "^3.5.1" } diff --git a/src/.vuepress/theme/components/blog/PostHero.vue b/src/.vuepress/theme/components/blog/PostHero.vue new file mode 100644 index 00000000..ad05f51a --- /dev/null +++ b/src/.vuepress/theme/components/blog/PostHero.vue @@ -0,0 +1,101 @@ + + + diff --git a/src/.vuepress/theme/components/blog/PostSocials.vue b/src/.vuepress/theme/components/blog/PostSocials.vue new file mode 100644 index 00000000..214204dc --- /dev/null +++ b/src/.vuepress/theme/components/blog/PostSocials.vue @@ -0,0 +1,43 @@ + + diff --git a/src/.vuepress/theme/enhanceApp.js b/src/.vuepress/theme/enhanceApp.js index d7b4b684..db18e887 100644 --- a/src/.vuepress/theme/enhanceApp.js +++ b/src/.vuepress/theme/enhanceApp.js @@ -5,6 +5,7 @@ import VScrollLock from 'v-scroll-lock' import VueMq from 'vue-mq' import { VLazyImagePlugin } from 'v-lazy-image' import VueObserveVisibility from 'vue-observe-visibility' +import VueSocialSharing from 'vue-social-sharing' import Transition from '@theme/components/directives/Transition.js' @@ -30,6 +31,7 @@ export default ({ Vue, router, siteData }) => { Vue.use(VueMq, { breakpoints }) Vue.use(VLazyImagePlugin) Vue.use(VueObserveVisibility) + Vue.use(VueSocialSharing) Vue.directive(Transition.name, Transition.directive) diff --git a/src/.vuepress/theme/layouts/BlogPost.vue b/src/.vuepress/theme/layouts/BlogPost.vue index 06b378a0..8e9bf381 100644 --- a/src/.vuepress/theme/layouts/BlogPost.vue +++ b/src/.vuepress/theme/layouts/BlogPost.vue @@ -1,26 +1,14 @@