Skip to content

Commit

Permalink
fix slice indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
i0sea committed Sep 26, 2023
1 parent cbfa143 commit 0b34b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/site/lib/site_web/templates/layout/app.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<meta name="robots" content="noindex, nofollow">
<% end %>
<%= # hide any page in /charlie directory from search engines
if @conn.request_path == "/charlie" || String.slice(@conn.request_path, 0..4) == "/charlie/" do %>
if @conn.request_path == "/charlie" || String.slice(@conn.request_path, 0..8) == "/charlie/" do %>
<meta name="robots" content="noindex, nofollow">
<% end %>
<%= # hide any page in /policies/terms-use-charlie directory from search engines
if @conn.request_path == "/policies/terms-use-charlie" || String.slice(@conn.request_path, 0..4) == "/policies/terms-use-charlie/" do %>
if @conn.request_path == "/policies/terms-use-charlie" || String.slice(@conn.request_path, 0..27) == "/policies/terms-use-charlie/" do %>
<meta name="robots" content="noindex, nofollow">
<% end %>
<% title = if Phoenix.Controller.view_template(@conn) == "404.html", do: "Page Not Found | MBTA - Massachusetts Bay Transportation Authority", else: title_breadcrumbs(@conn) %>
Expand Down

0 comments on commit 0b34b30

Please sign in to comment.