Add titles

This commit is contained in:
2025-07-30 01:25:49 +08:00
parent 7f9d241850
commit ea63bcf3b4
6 changed files with 179 additions and 2 deletions

View File

@@ -192,6 +192,10 @@ const { data: products } = await useAsyncData(route.path, () => {
return queryCollection("products").all();
});
useHead({
title: "Solsynth",
});
onMounted(() => {
new Typed("#who-are-we", {
strings: [

View File

@@ -132,6 +132,10 @@ import {
import { Octokit } from "@octokit/rest";
import { LaunchRound } from "@vicons/material";
useHead({
title: "Solar Network",
});
const latestRelease = useAsyncData("sn-latest-release", async () => {
const octo = new Octokit({});
const resp = await octo.repos.getLatestRelease({

View File

@@ -5,6 +5,10 @@ const route = useRoute();
const { data: page } = await useAsyncData(route.path, () => {
return queryCollection("terms").path(route.path).first();
});
useHead({
title: () => page.value?.title || "Terms",
});
</script>
<template>