feat: page titles and favicon

This commit is contained in:
2026-03-25 21:39:00 +01:00
parent ffba95a411
commit 8f4be48fd1
6 changed files with 73 additions and 8 deletions

View File

@@ -2,6 +2,8 @@
import { z } from "zod";
import type { AuthFormField, FormSubmitEvent } from "@nuxt/ui";
useHead({ title: 'Sign in' });
definePageMeta({
middleware: () => {
const { loggedIn } = useUserSession();

View File

@@ -23,6 +23,13 @@ const category = computed(() => {
return "all";
});
const categoryTitle = computed(() => {
if (category.value === "active") return "Active links";
if (category.value === "disabled") return "Disabled links";
return "All links";
});
useHead({ title: categoryTitle });
const filteredLinks = computed(() => {
if (!links.value) return [];
if (category.value === "active") return links.value.filter((l) => !l.disabled);