File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed
Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,14 @@ footer:
6363 # since: 2015
6464
6565 # Icon between year and copyright info.
66- icon : user
66+ icon :
67+ # Icon name in fontawesome, see: https://fontawesome.com/v4.7.0/icons
68+ # `heart` is recommended with animation in red (#ff0000).
69+ name : user
70+ # If you want to animate the icon, set it to true.
71+ animated : false
72+ # Change the color of icon, using Hex Code.
73+ color : " #808080"
6774
6875 # If not defined, will be used `author` from Hexo main config.
6976 copyright :
Original file line number Diff line number Diff line change 22#}{% set current = date (Date.now (), " YYYY" ) %}{#
33#}© {% if theme.footer .since and theme.footer .since != current %}{{ theme.footer .since }} — {% endif %}{#
44#}<span itemprop=" copyrightYear" >{{ current }}</span>
5- <span class =" with-love" >
6- <i class =" fa fa-{{ theme.footer.icon }}" ></i>
5+ <span class =" with-love" id= " animate " >
6+ <i class =" fa fa-{{ theme.footer.icon.name }}" ></i>
77 </span>
88 <span class =" author" itemprop=" copyrightHolder" >{{ theme.footer .copyright || config.author }}</span>
99
Original file line number Diff line number Diff line change 77
88.footer-inner { text-align : center ; }
99
10+ @keyframes iconAnimate {
11+ 0% ,100% {transform :scale (1 );}
12+ 10% ,30% {transform :scale (0.9 );}
13+ 20% ,40% ,60% ,80% {transform :scale (1.1 );}
14+ 50% ,70% {transform :scale (1.1 );}
15+ }
16+
17+ if hexo-config ('footer.icon.animated' ) {
18+ #animate {
19+ animation : iconAnimate 1.33s ease-in-out infinite ;
20+ }
21+ }
22+
1023.with-love {
1124 display : inline-block ;
1225 margin : 0 5px ;
26+ color : unquote (hexo-config ('footer.icon.color' ));
1327}
1428
1529.powered-by ,
You can’t perform that action at this time.
0 commit comments