Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/v2/guide/team.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ order: 803
</ul>
</dd>
</template>
<footer v-if="profile.github || profile.twitter" class="social">
<footer v-if="hasSocialLinks" class="social">
<a class=github v-if="profile.github" :href="githubUrl(profile.github)">
<i class="fa fa-github"></i>
<span class="sr-only">Github</span>
Expand All @@ -99,6 +99,10 @@ order: 803
<i class="fa fa-twitter"></i>
<span class="sr-only">Twitter</span>
</a>
<a class=codepen v-if="profile.codepen" :href="'https://codepen.io/' + profile.codepen">
<i class="fa fa-codepen"></i>
<span class="sr-only">CodePen</span>
</a>
</footer>
</dl>
</div>
Expand Down Expand Up @@ -895,6 +899,9 @@ order: 803
}).join('</li><li>') +
'</li></ul>'
)
},
hasSocialLinks: function () {
return this.profile.github || this.profile.twitter || this.profile.codepen
}
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion themes/vue/source/css/_team.styl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
line-height: 1
vertical-align: middle
margin-right: 4px
&.github
&.github, &.codepen
color: #000
&.twitter
color: #1da1f3
Expand Down