Current section
Files
Jump to
Current section
Files
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