Skip to content

PhoenixKit 1.7.77: Social sharing tags for published posts

PhoenixKit 1.7.77 adds Open Graph and Twitter Card tags to public Publishing pages, so links to your posts show a title, description and image when shared. Pages also get a canonical link and og:site_name with your project title.

Sitemap entries now carry a last-modified date. Markdown in posts is styled with your daisyUI theme colours through shared prose rules, and the preview shows the full public page with a working language switcher. Translations reload with the translated text instead of the primary language, and a link whose language is a base code such as en finds the en-US version.

Finished scheduled jobs older than seven days are now deleted, so the table does not keep growing. mix phoenix_kit.status shows the real migration version. Seeding email templates on a fresh install works again.

Upgrading

Run mix phoenix_kit.update for V84. It renames any leftover phoenix_kit_mailing_* tables to phoenix_kit_newsletters_* on databases that ran the old V79.

Full release notes: PhoenixKit 1.7.77

1.7.77 · 17 March 2026

Added

  • Add Open Graph and Twitter Card meta tags for public publishing pages (og:title, og:description, og:image, og:url, og:locale, canonical link, and Twitter Card tags)
  • Add og:site_name meta tag using project title
  • Add resolve_language_key/2 helper to LanguageHelpers for base code to dialect code matching in language maps
  • Add Tailwind Typography prose overrides using daisyUI theme variables (oklch(–bc), oklch(–p), oklch(–b2), oklch(–b3)) for theme-aware markdown styling
  • Add automated scheduled jobs cleanup to prevent table bloat (deletes completed jobs older than 7 days)
  • Add lastmod (last modified) to sitemap entries for SEO — router-discovered routes use beam file mtime, static entries use current date

Changed

  • Replace inline markdown CSS with centralized prose overrides in app.css using @layer base (removes 323 lines of duplication)
  • Update publishing preview template to show full public interface with working language switcher
  • Move MarkdownContent component to use Tailwind prose classes instead of custom inline styles
  • Extract duplicated resolve_language_key/2 from listing.ex and html.ex to shared LanguageHelpers module
  • Extract update_post_from_form/3 from publishing editor to reduce cyclomatic complexity (from >10 to <10)
  • Update Leaf content editor dependency from v0.1.0 to v0.2.0

Fixed

  • Fix mix phoenix_kit.status showing V01 instead of actual migration version — properly start Repo with parent app config when using --no-start
  • Fix language map lookup when canonical URL uses base code (e.g., “en” → “en-US” matching)
  • Fix absolute_url/2 to use stricter URL protocol checking (“http://” or “https://” instead of just “http”)
  • Fix preview language links to conditionally include version parameter only when version is non-nil
  • Fix translation reload showing primary language content instead of translated content
  • Fix PubSub subscription mismatch for translation and version events on timestamp-mode posts (slug vs uuid topic mismatch)
  • Fix email template seeding failing on fresh install (wrap string fields in i18n maps)
  • Fix whitespace in slug format examples on publishing group pages

PhoenixKit 1.7.77. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.