PhoenixKitWeb.Live.Settings.SEO (phoenix_kit v1.7.234)

Copy Markdown View Source

SEO settings management LiveView for PhoenixKit.

Provides a simple interface for global indexing directives (noindex/nofollow) to keep staging or development deployments out of search engines, plus the robots.txt guidance that goes with them.

PhoenixKit deliberately does not generate robots.txt. It is host policy, and Plug.Static runs before the router — a priv/static/robots.txt is served whatever the router says, so a generated route would be dead code on most installs and a silent override on the rest. What this page does instead is tell the operator exactly what to put in theirs, including the Sitemap: line, since a sitemap nothing points at is one crawlers find by guessing.

Summary

Functions

handle_event(binary, params, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.