From cc6586587fa6ce3fc55bb81b66047ae3ffacdf81 Mon Sep 17 00:00:00 2001 From: qdust41 Date: Sun, 5 Apr 2026 15:19:47 -0400 Subject: [PATCH] Added some meta tags for "SEO" (fake ass concept for this) but hopefully works for embeds --- .../components/layouts/root.html.heex | 13 ++++++++++++ .../components/layouts/spa_root.html.heex | 20 +++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/lib/mixer_web/components/layouts/root.html.heex b/lib/mixer_web/components/layouts/root.html.heex index 8496a59..2fe3362 100644 --- a/lib/mixer_web/components/layouts/root.html.heex +++ b/lib/mixer_web/components/layouts/root.html.heex @@ -5,6 +5,19 @@ + <% + meta_title = (assigns[:page_title] || "Mixer") + meta_description = assigns[:page_description] || "Mixer is a social feed for all. Come join the conversation — built with Elixir." + %> + + + + + + + + + <.live_title suffix=" · Mixer"> {assigns[:page_title] || "Mixer"} diff --git a/lib/mixer_web/components/layouts/spa_root.html.heex b/lib/mixer_web/components/layouts/spa_root.html.heex index 530a8c5..4841c7f 100644 --- a/lib/mixer_web/components/layouts/spa_root.html.heex +++ b/lib/mixer_web/components/layouts/spa_root.html.heex @@ -9,6 +9,26 @@ SPDX-License-Identifier: MIT + <% + {spa_title, spa_description} = case @page do + "feed" -> {"Mixer · Feed", "See the latest posts from everyone on Mixer."} + "tweet" -> {"Mixer · Post", "Read this post and join the conversation on Mixer."} + "following" -> {"Mixer · Following", "Posts from the people you follow on Mixer."} + "profile" -> {"Mixer · My Profile", "View and manage your Mixer profile."} + "users" -> {"Mixer · People", "Discover and follow people on Mixer."} + "user-detail" -> {"Mixer · Profile", "View this user's profile and posts on Mixer."} + _ -> {"Mixer", "A social feed built in Elixir."} + end + %> + + + + + + + + + <.live_title default="Mixer"> {case @page do "feed" -> "Mixer · Feed"