Skip to content

Commit

Permalink
fix(theme): Added twitter:card to all pages (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric authored and egoist committed Jun 26, 2019
1 parent a9c983a commit c785617
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/saber-theme-portfolio/src/layouts/post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ export default {
name: 'description',
content: description
},
{
name: 'twitter:card',
content: 'summary'
},
this.$themeConfig.twitter && {
name: 'twitter:creator',
content: `@${this.$themeConfig.twitter}`
},
{
property: 'og:title',
content: title
Expand Down
8 changes: 8 additions & 0 deletions packages/saber-theme-portfolio/src/saber-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ export default ({ Vue, setHead }) => {
{
name: 'description',
content: vm.$siteConfig.description
},
{
name: 'twitter:card',
content: 'summary'
},
vm.$themeConfig.twitter && {
name: 'twitter:creator',
content: `@${vm.$themeConfig.twitter}`
}
]
}
Expand Down

0 comments on commit c785617

Please sign in to comment.