Posted in

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

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标签的作用和用法》学习。

嗨,叫我老刘就好。我已从事知识产权行业13年,这个博客主要围绕商标版权做经验分享。希望能帮到大家。有商标、版权业务方面的需求可以直接扫码添加我的微信咨询。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注