Skip to content

Commit

Permalink
improve(SEO): Add meta tag in head, add invisiable div for title
Browse files Browse the repository at this point in the history
  • Loading branch information
zhullyb committed Dec 13, 2024
1 parent bbe7bfb commit aebcbee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 12 additions & 3 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<script setup lang="ts">
const title = "博客看板 - 浙江工业大学精弘网络技术团队";
const description = "这里汇聚了成员们的博客精华,通过每日定时更新的博客看板,及时了解成员动态、技术见解和创意分享。";
useSeoMeta({
title: title,
description: description,
ogTitle: title,
ogDescription: description
});
</script>

<template>
<Head>
<Title>浙江工业大学精弘网络技术团队</Title>
</Head>
<SiteHeader />
<SiteContent />
<SiteFooter />
Expand Down
3 changes: 3 additions & 0 deletions components/SiteHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
src="/img/logo.webp"
alt="精弘网络"
>
<div class="hidden">
浙江工业大学精弘网络技术团队
</div>
<a
href="https://github.com/zjutjh"
target="_blank"
Expand Down

0 comments on commit aebcbee

Please sign in to comment.