对老刘笔记博客页面里的nofollow标签进行下重置

本文共有1148个字。 # Akina For Typecho , 老刘笔记/ a

nofollow标签的用法之一是在代码链接中<a rel=“nofollow” href=“url”>这样使用,这是告诉搜索引擎不要抓取该链接。

今天老刘特意检查了下老刘笔记https://www.laoliubiji.com这个博客网站里的nofollow标签属性设置情况,在页面底部发现了有几处nofollow标签使用不合理的情况,特进行了修改。

修改前

<div id="footer" class="site-info">Copyright © <?php echo date("Y");?> by <a href="<?php $this->options ->siteUrl(); ?>" target="_blank" rel="nofollow"><?php $this->options->title() ?></a> . All rights reserved.<span class="sep"> | </span>Theme: <a href="https://zhebk.cn/Web/Akina.html" target="_blank" rel="nofollow">Akina For Typecho</a>.

修改后

<div id="footer" class="site-info">Copyright © <?php echo date("Y");?> by <a href="<?php $this->options ->siteUrl(); ?>" target="_blank" rel="follow"><?php $this->options->title() ?></a> . All rights reserved.<span class="sep"> | </span>Theme: <a href="https://zhebk.cn/Web/Akina.html" target="_blank" rel="nofollow">Akina For Typecho</a>.

在这里赞美一下老刘笔记博客使用的主题“Akina For Typecho”创作者“子虚之人”,在上述代码里可以看到,他对自己的链接设置了nofollow。

更多有关nofllow的用法可以阅读《noindex与nofllow标签的作用和用法》学习。

「仍有疑问未解决欢迎加博主微信交流」

版权声明:本文如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。

添加新评论

暂无评论