[建站教程]Handsome 文章底部添清新的加版权说明SEO收录优化

效果图
5d3bdc4708a2b.png

食用方法

将以下代码添加到网页head 或 和html放到一起

/*文章底部版权https://dxoca.cn/SiteLog/196.html*/
.cpright {
    padding: 10px;
    background: rgba(220, 220, 220, 0.1);
    margin: 8px 0;
    font-size: 13px;
    border-left: 3px #f07aab96 solid;
    position: relative;
    z-index: 1;
    font-family: "Microsoft Yahei","Droid Serif",Georgia,"Times New Roman",STHeiti,serif;
    text-align: left;
}
.cpright a:hover {
    color: #ff7979e8!important;
}
.cpright a {
    color: #999!important;
    margin: 4px;
    border-bottom: 0px solid #999!important;
}
Html

以下添加到文章输出挂载代码的后面

handsome为例 post.php的 <!--文章页脚的广告位-->头顶最近的</div>的前面即可

<div class="cpright">
<span>本文作者:<span class="sr-only"><?php _me("作者") ?>:</span> <a class="meta-value" href="<?php $this->author->permalink(); ?>" rel="author"> <?php $this->author(); ?></a></span>&nbsp;&nbsp;&nbsp;
文章标题:<a href="<?php $this->permalink() ?>"><?php $this->title() ?></a><br><span>本文地址:<a href="<?php $this->permalink() ?>"><?php $this->permalink() ?></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><span>版权说明:若无注明,本文皆为“<a href="<?php $this->options->siteUrl(); ?>" target="_blank" data-original-title="<?php $this->options->title() ?>"><?php $this->options->title() ?></a>”原创,转载请保留文章出处。</span>
</div>

参考文献

Last modification:November 8th, 2019 at 09:05 pm
如果觉得我的文章对你有用,请随意赞赏

One comment

  1. 墨轩

    自己测试邮件回复

Leave a Comment