Cannot add a new template on Dawn 15.4.0 (specifically robots.txt)

Short description of issue

Cannot add a new template on Dawn 15.4.0 (specifically robots.txt)

Reproduction steps

In a Dawn 15.4.0 theme, open the theme code editor. Open the templates folder. There is no button to ‘Add a new template’, you can only add a blank file. This is no good when you need to start with the default template content for robots.txt

Additional info

The steps outlined in https://help.shopify.com/en/manual/promoting-marketing/seo/editing-robots-txt for editing a robots.txt folder, which always used to work, no longer work with the new theme editor. Even though my store uses the latest version of Dawn, which is OS 2 compatible, I cannot add a new template properly.

What type of topic is this

Bug report

Hey @dartacus! I’ve created an issue to make sure we add the starter content by default. In the mean time you can use the following:

# we use Shopify as our ecommerce platform
{%- comment -%}
# Caution! Please read https://help.shopify.com/en/manual/promoting-marketing/seo/editing-robots-txt before proceeding to make changes to this file.
{% endcomment %}
{% for group in robots.default_groups %}
  {{- group.user_agent -}}

  {% for rule in group.rules %}
    {{- rule -}}
  {% endfor %}

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

Remember to name the file robots.txt.liquid.

Thanks Gray, appreciate the response and thanks for flagging it. G