Skip to content

Commit

Permalink
fix: Try avoiding elm~pages base option bug. Bug is here: dillonkearn…
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnah committed Jan 20, 2025
1 parent 075d20a commit 7fac692
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Layout.elm
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ viewMainMenuItem : { label : String, route : Route } -> Html msg
viewMainMenuItem { label, route } =
Route.link
[ Attrs.class "hidden sm:block font-medium text-gray-900 dark:text-gray-100 hover:underline decoration-primary-500"
, Attrs.href (Settings.appendToBasePath (Route.toString route))
]
[ Html.text label ]
route
Expand Down
8 changes: 7 additions & 1 deletion src/Settings.elm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Settings exposing
( author
( appendToBasePath
, author
, basePath
, canonicalUrl
, domain
Expand All @@ -22,6 +23,11 @@ basePath =
"/try-elm-pages-2"


appendToBasePath : String -> String
appendToBasePath path =
basePath ++ path


canonicalUrl : String
canonicalUrl =
"https://" ++ domain ++ basePath
Expand Down

0 comments on commit 7fac692

Please sign in to comment.