fix theme...
This commit is contained in:
12
themes/anzhiyu/layout/includes/header/social.pug
Normal file
12
themes/anzhiyu/layout/includes/header/social.pug
Normal file
@@ -0,0 +1,12 @@
|
||||
each value, title in theme.social
|
||||
a.social-icon.faa-parent.animated-hover(href=url_for(trim(value.split('||')[0])) target="_blank" title=title === undefined ? '' : trim(title))
|
||||
if value.split('||')[1]
|
||||
- var icon_value = trim(value.split('||')[1])
|
||||
- var anima_value = value.split('||')[2] ? trim(value.split('||')[2]) : 'faa-tada'
|
||||
if (icon_value.startsWith("fa"))
|
||||
i(class=icon_value + ' ' + anima_value)
|
||||
else if (icon_value.startsWith("icon"))
|
||||
svg.icon(aria-hidden="true" class=anima_value)
|
||||
use(xlink:href=`#`+ icon_value)
|
||||
else if (icon_value.startsWith("anzhiyu"))
|
||||
i.anzhiyufont(class=icon_value)
|
||||
Reference in New Issue
Block a user