Literature.StaticPages.MetaTagHelpers (literature v0.4.22)
Helpers for rendering meta tags in static pages.
Summary
Functions
Render default meta tags
Render pagination link tags.
Can be generated using a page struct and the current URL
or with exact next and previous URLs.
Render post language tags
Render publication language tags
Functions
Attributes
current_url(:string) (required)
@spec get_default_meta_tags( Literature.Publication.t() | Literature.Author.t() | Literature.Post.t() | Literature.Tag.t(), Literature.Publication.t(), Literature.Pagination.Page.t() | nil ) :: map()
Render default meta tags
Attributes
tags(:map) (required)current_url(:string) (required)
Render pagination link tags.
Can be generated using a page struct and the current URL
or with exact next and previous URLs.
Attributes
page(:map)current_url(:string)next_url(:any)prev_url(:any)
Render post language tags
Attributes
post(:map) (required)publication(:map) (required)
Render publication language tags
Attributes
publication(:map) (required)current_url(:string) (required)