这是我的头部模板代码,不懂这个怎么加。
<div class="dh_nav">
<ul class="container">
<li class='home'><a class="navHome" href="/">公司首页</a></li>
{dede:channel type='top' currentstyle="
<li><a href='~typelink~' class='cur'>~typename~</a></li>
"}
<li><a href="[field:typeurl/]">[field:typename/]</a></li>
{/dede:channel}
</ul>
</div>
链接是调用dede栏目的,找到关于我们的栏目,找到对应的a标签,在a标签里面加上rel="Nofollow"就好了。一般只有链接到外部链接,而又不想分散权重的之后可以加这个nofollow的,不过交换的友链除外。
###<a href="" rel="nofllow"></a>
###织梦指定栏目加Nofollow的代码,望采纳
<ul class="nav nav-menu nav-inline nav-pills text-right">
<li><a href='{dede:}/'><span>首页</span></a></li>
{dede:channelartlist typeid='2,3'} <!--此处是不加nofollow的栏目ID-->
{dede:type}
<li class="page_item"><a rel="nofollow" href='[field:typelink /]'><span>[field:typename/]</span></a>
</li>
{/dede:type}
{/dede:channelartlist}
{dede:channelartlist typeid='1,9,10,14'} <!--此处是加nofollow栏目的ID-->
{dede:type}
<li class="page_item"><a href='[field:typelink /]' rel="nofollow"><span>[field:typename/]</span></a>
</li>
{/dede:type}
{/dede:channelartlist}
</ul>
###看一楼的。 这个是正确的
###你要是相加只能自己手写导航,不能从后台调用了
###比如这个连接 <li class='home'><a class="navHome" href="/" rel="nofollow" >公司首页</a></li>
本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/56677.html
