stk:head.create-robots-meta(template)

Creates a meta robots element based on site configuration

element()?stk:head.create-robots-meta

Based on the configuration in your site's config.xml (as shown in the example), the STK will add a meta robots element to the current page. The path can be set both specifically and recursively. If recursive="true", then all URLs that starts with the src attribute will get the given robots setting. If recursive="false" or not set, only the exact URL match will get the robots setting.

Examples

Input

<!-- Example configuration -->
<config>    
    <robots>
        <path src="/articles" recursive="true" content="noindex, nofollow"/>
        <path src="/events" content="noindex"/>
    </robots>
</config>

<!-- Output in head -->
<xsl:call-template name="stk:head.create-robots-meta"/>