Authored by xuqi

逛页面添加作者链接

... ... @@ -10,14 +10,16 @@
margin-left: 30rem / $pxConvertRem;
}
.avatar {
.avatar-container {
float: left;
position: relative;
top: 50%;
margin-top: -25rem / $pxConvertRem;
margin-top: -33rem / $pxConvertRem;
}
.avatar {
width: 50rem / $pxConvertRem;
height: 50rem / $pxConvertRem;
vertical-align: middle;
@include border-radius(50rem / $pxConvertRem);
}
... ... @@ -25,6 +27,7 @@
float: left;
font-size: 28rem / $pxConvertRem;
color: #000;
text-decoration: none;
}
.intro {
... ...
{{# author}}
<div class="article-author partial clearfix">
<a class="avatar-container" href="{{url}}">
<img class="avatar" src="{{avatar}}">
<span class="name">{{name}}</span>
</a>
<a class="name" href="{{url}}">{{name}}</a>
<span class="intro">{{intro}}</span>
</div>
{{/ author}}
\ No newline at end of file
... ...