Packages

SEO optimization tools for Phoenix and Phoenix LiveView applications

Current section

Files

Jump to
phoenix_seo_tools lib page_link.ex
Raw

lib/page_link.ex

defmodule PhoenixSEOTools.PageLink do
@moduledoc """
A struct representing HTML link tags for SEO purposes.
This struct is used by the `PhoenixSEOTools.SEO` module to generate the necessary
link tags (like canonical URLs) for your pages and is consumed by the
`PhoenixSEOTools.Components.Head` component.
## Fields
* `:rel` - The relationship of the link (e.g., "canonical")
* `:href` - The URL that the link points to
"""
defstruct rel: nil,
href: nil
end