1
0
Files
frost-zx.github.io/docs/.vitepress/theme/layout/SiteFooter.vue
2025-10-09 22:57:12 +08:00

50 lines
1.0 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup>
import { useData } from 'vitepress';
import { computed } from 'vue';
import { siteLinksOnline } from '../../site-links.mjs';
const siteData = useData();
const siteLinks = computed(() => {
return siteLinksOnline.filter((item) => {
return item.isGlobal;
});
});
</script>
<template>
<div class="site-footer">
<div class="site-footer__row">
<span>Copyright © {{ siteData.site.value.title }} Powered by VitePress</span>
</div>
<div class="site-footer__row">
<span>友情链接</span>
<a
v-for="(item, index) in siteLinks"
:key="index"
:href="item.siteUrl"
target="_blank"
>{{ item.siteTitle }}</a>
</div>
</div>
</template>
<style lang="less">
.site-footer {
padding: 32px 0;
background-color: var(--vp-c-bg-alt);
color: var(--vp-c-text-1);
font-size: 14px;
line-height: 2;
text-align: center;
user-select: none;
a {
margin: 0 0.25em;
color: var(--vp-c-brand-1);
text-decoration: underline;
text-underline-offset: 2px;
}
}
</style>