Skip to content

Commit

Permalink
feat: Replace hard-coded image links with vanity URL's (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson authored Oct 4, 2024
1 parent 283ad09 commit 9d1f9c9
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lib/dotcom/map_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,14 @@ defmodule Dotcom.MapHelpers do

@spec image(atom) :: String.t()
def image(:subway) do
static_url(
DotcomWeb.Endpoint,
"/sites/default/files/media/2023-01/2022-12-12-subway-map-v37f.jpg"
)
static_url(DotcomWeb.Endpoint, "/subway-map-image")
end

def image(:commuter_rail) do
static_url(
DotcomWeb.Endpoint,
"/sites/default/files/maps/2019-04-08-commuter-rail-map-v33.png"
)
static_url(DotcomWeb.Endpoint, "/cr-map-image")
end

def image(:ferry), do: "/ferry-map"
def image(:ferry) do
static_url(DotcomWeb.Endpoint, "/ferry-map-image")
end
end

0 comments on commit 9d1f9c9

Please sign in to comment.