@ -1,27 +1,41 @@
/ / body font
$fontfamily = " M i c r o s o f t Y a H e i " , " Source S a n s P r o " , " H e l v e t i c a N e u e " , M e n l o , M o n a c o , m o n o s p a c e , " L u c i d a C o n s o l e " , s a n s - s e r if , H e l v e t i c a , " H i r a g i n o S a n s G B " , " H i r a g i n o S a n s G B W 3 " , Source H a n S a n s C N R e g u l a r , W e n Q u a n Y i M i c r o H e i , A r i a l , s a n s - s e r if
/ / i n l i n e code & c o d e b l o c k font
$fontfamily-code = M e n l o , M o n a c o , c o u r i e r , m o n o s p a c e , " L u c i d a C o n s o l e " , ' Source Code P r o ' , " M i c r o s o f t Y a H e i " , H e l v e t i c a , A r i a l , s a n s - s e r if , ' U b u n t u '
$fontfamily = " P i n g F a n g S C " , " M i c r o s o f t Y a H e i " , H e l v e t i c a , A r i a l , M e n l o , M o n a c o , m o n o s p a c e , " L u c i d a C o n s o l e " , s a n s - s e r if
if hexo-config ( ' style . fontfamily . bodyfont ' )
@font-face
font - f a m i l y : hexo-config ( ' style . fontfamily . bodyfont . name ' )
s r c : url ( hexo-config ( ' style . fontfamily . bodyfont . url ' ) )
font - w e i g h t : hexo-config ( ' style . fontfamily . bodyfont . weight ' )
font - style : hexo-config ( ' style . fontfamily . bodyfont . style ' )
$fontfamily = hexo-config ( ' style . fontfamily . bodyfont . name ' ) , $fontfamily
if hexo-config ( ' style . fontfamily . bodyfont . name ' )
@font-face
font - f a m i l y : hexo-config ( ' style . fontfamily . bodyfont . name ' )
s r c : url ( hexo-config ( ' style . fontfamily . bodyfont . url ' ) )
font - w e i g h t : hexo-config ( ' style . fontfamily . bodyfont . weight ' )
font - style : hexo-config ( ' style . fontfamily . bodyfont . style ' )
if hexo-config ( ' style . fontfamily . bodyfont . fontfamily ' )
$fontfamily = convert ( hexo-config ( ' style . fontfamily . bodyfont . fontfamily ' ) ) , M e n l o , M o n a c o , m o n o s p a c e , s a n s - s e r if
$fontfamily-code = M e n l o , M o n a c o , m o n o s p a c e , c o u r i e r , s a n s - s e r if
if hexo-config ( ' style . fontfamily . codefont ' )
@font-face
font - f a m i l y : hexo-config ( ' style . fontfamily . codefont . name ' )
s r c : url ( hexo-config ( ' style . fontfamily . codefont . url ' ) )
font - w e i g h t : hexo-config ( ' style . fontfamily . codefont . weight ' )
font - style : hexo-config ( ' style . fontfamily . codefont . style ' )
$fontfamily-code = hexo-config ( ' style . fontfamily . codefont . name ' ) , $fontfamily-code
/ / l o g o font
if hexo-config ( ' style . fontfamily . codefont . name ' )
@font-face
font - f a m i l y : hexo-config ( ' style . fontfamily . codefont . name ' )
s r c : url ( hexo-config ( ' style . fontfamily . codefont . url ' ) )
font - w e i g h t : hexo-config ( ' style . fontfamily . codefont . weight ' )
font - style : hexo-config ( ' style . fontfamily . codefont . style ' )
if hexo-config ( ' style . fontfamily . codefont . fontfamily ' )
$fontfamily-code = convert ( hexo-config ( ' style . fontfamily . codefont . fontfamily ' ) ) , m o n o s p a c e , c o u r i e r , s a n s - s e r if
$fontfamily-logo = $fontfamily
if hexo-config ( ' style . fontfamily . logofont ' )
if hexo-config ( ' style . fontfamily . logofont . name ' )
@font-face
font - f a m i l y : hexo-config ( ' style . fontfamily . logofont . name ' )
s r c : url ( hexo-config ( ' style . fontfamily . logofont . url ' ) )
font - w e i g h t : hexo-config ( ' style . fontfamily . logofont . weight ' )
font - style : hexo-config ( ' style . fontfamily . logofont . style ' )
if hexo-config ( ' style . fontfamily . logofont . fontfamily ' )
$fontfamily-logo = convert ( hexo-config ( ' style . fontfamily . logofont . fontfamily ' ) ) , H e l v e t i c a , m o n o s p a c e
/ / font size
$fontsize = convert ( hexo-config ( ' style . fontsize . root ' ) ) || 1 6 p x