%%= amp_html_doctype do %>
<%%= amp_head %>
<%% if content_for? :title %><%%= yield :title %><%% else %><%%= amp-html.application_name %><%% end %>
<% if options[:split] %>
<%%= canonical_document_link(url_for(format: :html, only_path: false)) %>
<% else %>
<%%= canonical_document_link %>
<% end %>
<%%= csrf_meta_tags %>
<%%= schema_tag("#{headline if content_for? :title}": "#{yield :title if content_for? :title}") %>
<%%= amp_css do %>
<%% end %>
<%%= yield %>
<%% end %>