add top feature

This commit is contained in:
FarseaSH 2021-08-11 11:39:04 +08:00
parent f077e9e85c
commit 40dfc5036e
3 changed files with 21 additions and 9 deletions

View file

@ -7,6 +7,13 @@
<!-- 正文 -->
<div class="col-sm-8">
<!-- 置顶标签 -->
{{ if gt .Params.top 0}}
<div class="top-mark" style="position: absolute; right: 5%;">
<i class="fas fa-bookmark" style="color: #e76b4f;"></i>
</div>
{{ end }}
<!-- 抬头 -->
<!-- 头像前面margin2px -->
<div style="margin-top: 2px;">