Skip to content

Commit

Permalink
hide for mbtace (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull authored Feb 4, 2025
1 parent f573069 commit 41edd16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dotcom_web/templates/layout/root.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<meta name="author" content="Massachusetts Bay Transportation Authority">
<meta name="theme-color" content="#165c96">

<%= # hide any mbtace sub domain
if String.match?(@conn.host, ~r/mbtace/) do %>
<meta name="robots" content="noindex, nofollow">
<% end %>

<%= # hide any page in /org directory from search engines
if @conn.request_path == "/org" || String.slice(@conn.request_path, 0..4) == "/org/" do %>
<meta name="robots" content="noindex, nofollow">
Expand Down

0 comments on commit 41edd16

Please sign in to comment.