Skip to content

Commit

Permalink
Remove unused layouts, breadcrumbs, and == true
Browse files Browse the repository at this point in the history
  • Loading branch information
beechnut committed Jun 10, 2024
1 parent a85aa30 commit 33a2ae3
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 135 deletions.
33 changes: 0 additions & 33 deletions _includes/breadcrumb.html

This file was deleted.

7 changes: 0 additions & 7 deletions _includes/layouts/guides.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

{% assign page_title = page.subnav_title | default: page.title %}

{% if page.breadcrumb %}
{% include "breadcrumb.html"
page_title=page_title
background_class='bg-base-lightest'
%}
{% endif %}

<section class="usa-section section-padding-sm">
<div class="grid-container">
<h1> {{ page.title }} </h1>
Expand Down
38 changes: 0 additions & 38 deletions _includes/layouts/page.html

This file was deleted.

2 changes: 1 addition & 1 deletion _includes/layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 itemprop="name headline">{{ title }}</h1>
<div class="grid-row grid-gap margin-top-8">
<div class="tablet:grid-col-7">
<div class="post-content" itemprop="articleBody">
{% if page.image and page.image_feature_small == true %}
{% if page.image and page.image_feature_small %}
<img class="image-feature-small" src="{{ site.baseurl }}{{ page.image }}" alt="{{ page.image_accessibility }}">
{% endif %}

Expand Down
7 changes: 0 additions & 7 deletions _includes/layouts/primary.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

{% assign page_title = page.subnav_title | default: page.title %}

{% if page.breadcrumb == true %}
{% include "breadcrumb.html",
page_title: page_title,
background_class: 'bg-base-lightest'
%}
{% endif %}

<section class="usa-section section-padding-sm">
<div class="grid-container">
<h1> {{ page.title }} </h1>
Expand Down
45 changes: 0 additions & 45 deletions _includes/layouts/styleguide.html

This file was deleted.

2 changes: 1 addition & 1 deletion _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% endif %}

{% if site.searchgov %}
{% if site.searchgov.suggestions == true %}
{% if site.searchgov.suggestions %}
<script>
var usasearch_config = { siteHandle: "{{ site.searchgov.affiliate }}" };
</script>
Expand Down
6 changes: 3 additions & 3 deletions _includes/searchgov/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
{% endcomment %}

{% if searchgov %}
{% if searchgov.inline == true %}
{% if searchgov.inline %}
<form id="search_form" class="usa-search usa-search--small" action="{{ '/search/' | url }}" accept-charset="UTF-8" method="get">
{% else %}
<form id="search_form" class="usa-search usa-search--small" action="{{searchgov.endpoint}}/search" accept-charset="UTF-8" method="get">
<form id="search_form" class="usa-search usa-search--small" action="{{ searchgov.endpoint }}/search" accept-charset="UTF-8" method="get">
{% endif %}

<input name="utf8" type="hidden" value="&#x2713;" />
<input name="affiliate" type="hidden" value="{{searchgov.affiliate}}" />
<input name="affiliate" type="hidden" value="{{ searchgov.affiliate }}" />

<div role="search">
<label class="usa-sr-only" for="extended-search-field-small">Search small</label>
Expand Down

0 comments on commit 33a2ae3

Please sign in to comment.