SEO helpers for PhoenixBlog.
Automatically generates Open Graph tags, Twitter Card tags, canonical URLs, and JSON-LD structured data for blog pages. Used internally by the default LiveViews.
Setup
Add these two lines to the <head> in your root layout:
<PhoenixBlog.Web.SEO.meta_tags seo={assigns[:seo]} />
<PhoenixBlog.Web.SEO.json_ld seo={assigns[:seo]} />These are no-ops on non-blog pages (when @seo is nil), so they are safe to
include in your app's global root layout.
Summary
Functions
Assigns SEO metadata to the socket.