从阿里云官网上复制你的推广链接,放到以下div中。
首页 >> 外观 >> 主题编辑 >> 根目录\layout\common\widget.ftl
。
这里添加在大屏的右侧(大概31行左右的地方)。
<#if post??>
<#include "../widget/cate_posts.ftl">
<#include "../widget/tag_posts.ftl">
<#include "../widget/toc-post.ftl">
<#else>
<#if settings.sidebar_recentpost!true>
<#include "../widget/recent_posts.ftl">
</#if>
<a class="card widget" style="display: block;width: 100%;height: 160px;overflow: hidden;position: relative;margin-top: 16px;user-select: none;" href="https://www.aliyun.com/1111/new?userCode=ulrfrm00" target="_blank" alt="阿里云-新人专场福利">
<img style="width: 96px;height: auto;position: absolute;top: 10px;left: 10px;z-index: 10;" src="https://www.kuxiaoxin.com/upload/2021/03/aliyun-logo-f91e653a89e94ce384e75d8b8f2afcdc.png" height="48" width="212"/>
<img style="position: absolute;height: 160px;width: auto;right: -255px;z-index: 8;max-width: none;" src="https://www.kuxiaoxin.com/upload/2021/03/ali-user-57df4f234a9443dbb7b6c7b7b3b371b0.jpg" height="720" width="3840"/>
<span style="position: absolute;top: 50px;left: 10px;color: #3d100f;font-size: 26px;font-weight: 500;z-index: 9;" class="new-user-txt">新人福利专场</span>
<span style="position: absolute;top: 95px;left: 10px;color: #3d100f;font-size: 16px;font-weight: 500;z-index: 9;" class="new-user-txt">云服务器最低85/年</span>
</a>
<a class="card widget" style="display: block;width: 100%;height: 160px;overflow: hidden;position: relative;margin-top: 16px;user-select: none;" href="https://www.aliyun.com/minisite/goods?userCode=ulrfrm00" target="_blank" alt="云小站-阿里云服务器优惠">
<img style="width: 96px;height: auto;position: absolute;top: 10px;left: 10px;z-index: 10;" src="https://www.kuxiaoxin.com/upload/2021/03/aliyun-logo-f91e653a89e94ce384e75d8b8f2afcdc.png" height="48" width="212"/>
<img style="position: absolute;height: 160px;width: auto;right: -313px;z-index: 8;max-width: none;" src="https://www.kuxiaoxin.com/upload/2021/03/ali-buy-21b0a1e82e3f49ab9aab1b4b8b59211d.png" height="536" width="2880"/>
<span style="position: absolute;top: 50px;left: 10px;color: #3d100f;font-size: 26px;font-weight: 500;z-index: 9;" class="new-user-txt">云小站欢迎你</span>
<span style="position: absolute;top: 95px;left: 10px;color: #3d100f;font-size: 16px;font-weight: 500;z-index: 9;" class="new-user-txt">阿里服务器优惠</span>
</a>
<#if settings.sidebar_recentcomment!true>
<#include "../widget/recent_comments.ftl">
</#if>
</#if>