{% if robots.disallow and not app.request.get('preview') %} User-agent: * Disallow: / {% else %} User-agent: * {% for url in robots.noIndexes %} {% if url.uri is defined %} Disallow: {{ url.uri }} {% endif %} {% else %} Allow: / {% endfor %} Disallow: /uploads/quotation/ {% endif %}