public inbox for [email protected]
 help / color / mirror / Atom feed
From: Muhammad Rizki <[email protected]>
To: Ammar Faizi <[email protected]>
Cc: Muhammad Rizki <[email protected]>,
	Alviro Iskandar Setiawan <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Subject: [PATCH v2 11/12] chore(seo): move seo from layout to /home page
Date: Sun,  9 Mar 2025 02:26:53 +0700	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

Move SEO from +layout.svelte to +page.svelte in /home page.

Signed-off-by: Muhammad Rizki <[email protected]>
---
 src/routes/(protected)/+layout.svelte    | 12 ------------
 src/routes/(protected)/home/+page.svelte | 10 ++++++++++
 2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/src/routes/(protected)/+layout.svelte b/src/routes/(protected)/+layout.svelte
index ec934be..e88b3fb 100644
--- a/src/routes/(protected)/+layout.svelte
+++ b/src/routes/(protected)/+layout.svelte
@@ -3,22 +3,10 @@
   import AppSidebar from "$components/customs/app-sidebar.svelte";
   import Header from "$components/customs/header.svelte";
   import Separator from "$components/ui/separator/separator.svelte";
-  import Seo from "$components/customs/seo.svelte";
-  import { useAuth } from "$lib/hooks/auth.svelte";
 
   let { children } = $props();
-
-  const auth = useAuth();
 </script>
 
-{#if auth.user && auth.token}
-  <Seo
-    title="{auth.user?.full_name} ({auth.user?.username}) - GNU/Weeb Mail"
-    description="Configure your email client using this config"
-    image={auth.user?.photo}
-  />
-{/if}
-
 <Sidebar.Provider class="light">
   <AppSidebar />
 
diff --git a/src/routes/(protected)/home/+page.svelte b/src/routes/(protected)/home/+page.svelte
index ef2be4b..4d35704 100644
--- a/src/routes/(protected)/home/+page.svelte
+++ b/src/routes/(protected)/home/+page.svelte
@@ -5,6 +5,10 @@
   import { mailConfig } from "$constants";
   import { toast } from "svelte-sonner";
   import { copyText } from "svelte-copy";
+  import { useAuth } from "$lib/hooks/auth.svelte";
+  import Seo from "$components/customs/seo.svelte";
+
+  const auth = useAuth();
 
   const copy = async (text: string) => {
     try {
@@ -18,6 +22,12 @@
   };
 </script>
 
+<Seo
+  title="{auth.user?.full_name} ({auth.user?.username}) - GNU/Weeb Mail"
+  description="Configure your email client using this config"
+  image={auth.user?.photo}
+/>
+
 <div class="flex h-full w-full justify-center">
   <Card.Root>
     <Card.Header class="py-5">
-- 
Muhammad Rizki


  parent reply	other threads:[~2025-03-08 19:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-08 19:26 [PATCH v2 00/12] Fix Auth Guard, Move SEO Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 01/12] fix(svelte): use relative false Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 02/12] fix(avatar): change avatarImg state to use from auth.user.photo state Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 03/12] chore(profile): add toUpperCase() on getShortName() Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 04/12] fix(profile): make social fields default to empty string Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 05/12] chore(toaster): change toast message position and use richColors Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 06/12] chore(profile): reset password value on success Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 07/12] fix(profile-avatar): add delete avatar method Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 08/12] chore(profile): add space for password confirmation form Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 09/12] feat(ui): add dropdown-menu and update bits-ui version Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 10/12] chore(sidebar-menu): change sidebar menu look Muhammad Rizki
2025-03-08 19:26 ` Muhammad Rizki [this message]
2025-03-08 19:26 ` [PATCH v2 12/12] fix(auth): fix auth guard when credentials is invalid Muhammad Rizki
2025-03-08 19:38 ` [PATCH v2 00/12] Fix Auth Guard, Move SEO Ammar Faizi
2025-03-08 19:51   ` Alviro Iskandar Setiawan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox