Skip to content

Commit

Permalink
✨ support description
Browse files Browse the repository at this point in the history
  • Loading branch information
XiYang6666 committed May 12, 2024
1 parent 531d662 commit ac4e860
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,6 @@
<script lang="ts" setup>
const config = useRuntimeConfig();
useHead({
title: config.title,
link: [
{
rel: "shortcut icon",
href: "/api/getIcon",
},
{
rel: "stylesheet",
href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css",
},
],
});
const ownerName = useState(() => config.ownerName);
const description = useState(() => config.description);
Expand All @@ -72,4 +58,19 @@ const footer = useState(() => config.footer);
const links = useState(() => config.links as Record<string, string>);
const socials = useState(() => config.socials as Record<string, { link: string; icon: string }>);
useHead({
title: config.title,
meta: [{ name: "description", content: `${hitokoto.value}\n${description.value}` }],
link: [
{
rel: "shortcut icon",
href: "/api/getIcon",
},
{
rel: "stylesheet",
href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css",
},
],
});
</script>

0 comments on commit ac4e860

Please sign in to comment.