Multilingual.HTML (multilingual v0.1.1)
Summary
Functions
Builds a list of data for rel links for the document head.
Functions
Link to this function
get_rel_links(conn)
Builds a list of data for rel links for the document head.
Example
In the router: scope "/", MyAppWeb do
get "/about", PageController, :index, metadata("en")
get "/it/chi-siamo", PageController, :index, metadata("it")
end
iex> get_rel_links(conn) |> IO.puts() <link rel="canonical" href="https://example.com/about"> <link rel="alternate" hreflang="it" href="https://example.com/it/chi-siamo">