Halo博客 Fantastic主题的Bug修复

1.归档列表图片和链接错误

首页 >> 外观 >> 主题编辑 >> 根目录/archives.ftl

14行的${post.thumbnail}16行的${post.fullPath!}换一下位置即可。修改后如下:

<a href="${post.fullPath}" class="media-left">
  <p class="image is-64x64">
    <img class="thumbnail" src="${post.thumbnail!}" alt="${post.title!}">
  </p>
</a>

2.微信分享的样式不对

为什么不对自己体验一下就可以了

首页 >> 外观 >> 主题编辑 >> 根目录/layout/share/sharejs.ftl
<style>标签中添加一些样式:

<!-- ... --->
<style>
    <#if is_post??>
    // ...
    .social-share .icon-wechat .wechat-qrcode {
        top: -230px;
	width: 140px;
        height: 220px;
    }
    .social-share .icon-wechat .wechat-qrcode .help {
        padding: 0 8px;
    }
    .social-share .icon-wechat .wechat-qrcode:after {
        margin-left: 24px;
    }
    </#if>

</style>

3.最新评论位置

首页 >> 外观 >> 主题编辑 >> 根目录/layout/widget/recent_comments.ftl

加一个margin-top

<div class="card widget" style="margin-top: 16px;">
  <!-- ... -->
</div>
# Halo 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×