Making WordPress.org

Changeset 8196


Ignore:
Timestamp:
02/05/2019 04:02:10 AM (5 years ago)
Author:
dd32
Message:

Trac: noindex,follow attachment pages.

Fixes #4129.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r8195 r8196  
    2525    else :
    2626        canonical = false;
     27
     28    # <meta name="robots">
     29    if req.environ['PATH_INFO'].startswith('/attachment/') :
     30        robots = 'noindex, follow'
     31    else :
     32        robots = false
    2733
    2834    profile_to_edit = 'https://wordpress.org/support/users/'
     
    7177    <py:if test="canonical">
    7278        <link rel="canonical" href="$canonical"/>
     79    </py:if>
     80
     81    <py:if test="robots">
     82        <meta name="robots" content="$robots"/>
    7383    </py:if>
    7484</py:match>
Note: See TracChangeset for help on using the changeset viewer.