- Set canonical URL to metatags (unless set) before printing
- Remove reliance on
phoenix_html
to build tags - Relax
phoenix_html
versions
- Update
phoenix_html
to~> 3.1
-
Require elixir 1.10
-
Add support for common
<link>
tags:next
,canonical
,alternate
andapple-touch-icon-precomposed
-
Add
Metatags.put/4
to enable extra attributes to be set on the metatags. One example would be:Metatags.put(conn, "alternate", "https://my-url.se", hreflang: "sv_SE")
-
Move configuration of default values to the plug definition
-
Extract the plug to
Metatags.Plug
Migrate: First, change the plug from
Metatags
toMetatags.Plug
. After that you can move whatever you have in your configuration and put behindplug Metatags.Plug
in your router. If you require environment specific defaults, useApplication.get_env/3
.
- Add
[String.t()]
toMetatags.put/3
type spec - Replace
ESpec
withExUnit
in internal test suite