mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-25 19:00:03 +03:00
fixes #2300 search engine robots should not index/follow combined categories
This commit is contained in:
parent
547c8a9b94
commit
a3833eab9b
2 changed files with 10 additions and 2 deletions
|
@ -613,6 +613,14 @@ elseif ('search'==$page['section'])
|
|||
{
|
||||
$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
|
||||
}
|
||||
elseif ('categories' == $page['section'])
|
||||
{
|
||||
if (isset($page['combined_categories']))
|
||||
{
|
||||
$page['meta_robots'] = array('noindex'=>1, 'nofollow'=>1);
|
||||
}
|
||||
}
|
||||
|
||||
if ( $filter['enabled'] )
|
||||
{
|
||||
$page['meta_robots']['noindex']=1;
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
{/if}
|
||||
<li>
|
||||
{if isset($cat.TITLE)}
|
||||
<a href="{if isset($cat.url)}{$cat.url}{/if}" title="{$cat.TITLE}">{$cat.name}</a>
|
||||
<a href="{if isset($cat.url)}{$cat.url}{/if}" title="{$cat.TITLE}" rel="nofollow">{$cat.name}</a>
|
||||
{else}
|
||||
<a href="{if isset($cat.url)}{$cat.url}{/if}">{$cat.name}</a>
|
||||
<a href="{if isset($cat.url)}{$cat.url}{/if}" rel="nofollow">{$cat.name}</a>
|
||||
{/if}
|
||||
{if isset($cat.count_images) and $cat.count_images > 0}
|
||||
<span class="badge" title="{$cat.count_images|translate_dec:'%d photo':'%d photos'}">{$cat.count_images}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue