File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ order: 803
90
90
< / ul>
91
91
< / dd>
92
92
< / template>
93
- < footer v- if = " profile.github || profile.twitter " class = " social" >
93
+ < footer v- if = " hasSocialLinks " class = " social" >
94
94
< a class = github v- if = " profile.github" : href= " githubUrl(profile.github)" >
95
95
< i class = " fa fa-github" >< / i>
96
96
< span class = " sr-only" > Github< / span>
@@ -99,6 +99,10 @@ order: 803
99
99
< i class = " fa fa-twitter" >< / i>
100
100
< span class = " sr-only" > Twitter< / span>
101
101
< / a>
102
+ < a class = codepen v- if = " profile.codepen" : href= " 'https://codepen.io/' + profile.codepen" >
103
+ < i class = " fa fa-codepen" >< / i>
104
+ < span class = " sr-only" > CodePen< / span>
105
+ < / a>
102
106
< / footer>
103
107
< / dl>
104
108
< / div>
@@ -895,6 +899,9 @@ order: 803
895
899
}).join (' </li><li>' ) +
896
900
' </li></ul>'
897
901
)
902
+ },
903
+ hasSocialLinks : function () {
904
+ return this .profile .github || this .profile .twitter || this .profile .codepen
898
905
}
899
906
},
900
907
methods: {
Original file line number Diff line number Diff line change 118
118
line-height : 1
119
119
vertical-align : middle
120
120
margin-right : 4px
121
- & .github
121
+ & .github , & .codepen
122
122
color : #0 0 0
123
123
& .twitter
124
124
color : #1d a1 f3
You can’t perform that action at this time.
0 commit comments