SEO
Projects generated with mspa new come with a default:
robots.txttemplate;User-agent: * Sitemap: {{ base_url }}/sitemap.xml Disallow:sitemap.xmltemplate.<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> {% macro render(pages) %} {% for uri, page in pages %} <url> <loc>{{ base_url }}/{{ uri }}</loc> <priority>{{ page.meta.priority }}</priority> </url> {% if page.children %} {{ self::render(pages=page.children) }} {% endif %} {% endfor %} {% endmacro render %} {{ self::render(pages=tree) }} </urlset>
They help search engines better understand your website and, by default, allow crawlers to access any page. Each page has a default priority of 0.8, you can change this value by adding meta to the desired page :
[priority]: # (10)
[name]: # (My very important page)