feat: page titles and favicon
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
import { z } from "zod";
|
||||
import type { AuthFormField, FormSubmitEvent } from "@nuxt/ui";
|
||||
|
||||
useHead({ title: 'Sign in' });
|
||||
|
||||
definePageMeta({
|
||||
middleware: () => {
|
||||
const { loggedIn } = useUserSession();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user