diff --git a/app/templates/new/base.html b/app/templates/new/base.html index b175cff51..3502642bc 100644 --- a/app/templates/new/base.html +++ b/app/templates/new/base.html @@ -6,49 +6,7 @@ - - - - {% block pageTitle %} - {% block per_page_title %} {% endblock %}Notify.gov - <!-- on templates that were using content_template.html, we might need to use the {{ content_page_title }} variable for the per_page_title --> - {% endblock %} - - - - - {% if config['NR_MONITOR_ON'] %} - {% include "partials/newrelic.html" -%} - {% endif %} - {# Ensure that older IE versions always render with the correct rendering engine #} - - {% block headIcons %} - - - - - {% endblock %} - - {% block head %} - - {% block extra_stylesheets %} - {% endblock %} - {% if g.hide_from_search_engines %} - - {% endif %} - - {# The default og:image is added below head so that scrapers see any custom metatags first, and this is just a fallback #} - {% block meta_format_detection %} - - {% endblock %} - {% block meta %} - - - {% endblock %} - - {% endblock %} - - + {% include "new/components/head/head.html" %} {% block bodyStart %} diff --git a/app/templates/new/components/head/head.html b/app/templates/new/components/head/head.html new file mode 100644 index 000000000..9ceb9dbc1 --- /dev/null +++ b/app/templates/new/components/head/head.html @@ -0,0 +1,46 @@ + + + {% block pageTitle %}Notify.gov{% endblock %} + + + + + {% if config['NR_MONITOR_ON'] %} + {% include "partials/newrelic.html" -%} + {% endif %} + + {# Ensure that older IE versions always render with the correct rendering engine #} + + + {% block headIcons %} + + + + + + + + + + {% endblock %} + + + {% block extra_stylesheets %}{% endblock %} + + {% block meta_format_detection %} + + {% endblock %} + {% block og_image %} + + + + {% endblock %} + {# google #} + + + {% if g.hide_from_search_engines %} + + {% endif %} + + {% block head %}{% endblock %} + diff --git a/app/templates/new/templates_glossary.md b/app/templates/new/templates_glossary.md index 81325e26c..bb6b247d6 100644 --- a/app/templates/new/templates_glossary.md +++ b/app/templates/new/templates_glossary.md @@ -11,6 +11,7 @@ This document serves as a glossary for the templates directory structure of the - `withnav_template.html`: A variation of the base layout that includes a sidebar. - `org_template.html`: A variaton of the withnav_template - **/components**: Houses reusable UI components that can be included in multiple templates and can be tailored with different content or links depending on the context.(more frequently revised or customized) + - `head.html`: Template for the site's , included in `base.html`. - `header.html`: Template for the site's header, included in `base.html`. - `footer.html`: Template for the site's footer, included in `base.html`. - **/views** (or **/pages**): Individual page templates that use the base layouts, components, and partials to present content.