墨轩
[建站教程]Handsome 文章底部添清新的加版权说明SEO收录优化
[collapse status="true" title="效果图"][/collapse]
食用方法
将以下代码添加到网页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>
文章标题:<a href="<?php $this->permalink() ?>"><?php $this->title() ?></a><br><span>本文地址:<a href="<?php $this->permalink() ?>"><?php $this->permalink() ?></a></span> <br><span>版权说明:若无注明,本文皆为“<a href="<?php $this->options->siteUrl(); ?>" target="_blank" data-original-title="<?php $this->options->title() ?>"><?php $this->options->title() ?></a>”原创,转载请保留文章出处。</span>
</div>
参考文献
[scode type="green"]Typecho开发文档 http://docs.typecho.org/themes/quick-tutorial[/scode]
版权属于:赵墨轩部落格
本文链接:https://www.zmxcn.cn/13.html
本文章采用「知识共享署名-相同方式共享 4.0 国际许可协议」进行许可。转载时须注明出处及本声明
怎么用的
插曲到头部,如果用的和我一样的主题,在后台开发者选项里插曲就可以了!如果还不懂可以加我QQ⌇●﹏●⌇