thesis v0.0.21 Thesis.Page
Summary
Functions
Returns whether the page redirects to another page
Types
Functions
Returns whether the page redirects to another page.
Examples:
iex> Thesis.Page.redirected?(%Thesis.Page{slug: "", redirect_url: nil})
false
iex> Thesis.Page.redirected?(%Thesis.Page{slug: "", redirect_url: ""})
false
iex> Thesis.Page.redirected?(%Thesis.Page{slug: "", redirect_url: "/asdf"})
true