Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
style: 优化站点标题,在首页不显示副标题,修改标题分隔符
Timothy Yin4d08cfc7b621
diff --git a/app/app.vue b/app/app.vueindex cf7068a0..1d297ca8 100644--- a/app/app.vue+++ b/app/app.vue@@ -7,7 +7,8 @@ const { locale } = useI18n()const dayjs = useDayjs()useHead({- titleTemplate: (title) => `${title} :: ${config.public.APP_TITLE}`,+ titleTemplate: (title) =>+ `${title ? title + ' | ' : ''}${config.public.APP_TITLE}`,})const { data, refresh, status } = useFetch('/api/photos')diff --git a/app/layouts/masonry.vue b/app/layouts/masonry.vueindex 732abef2..f6f9694f 100644--- a/app/layouts/masonry.vue+++ b/app/layouts/masonry.vue@@ -1,6 +1,6 @@<script lang="ts" setup>useHead({- title: $t('title.gallery'),+ title: '',})const { photos } = usePhotos()diff --git a/app/pages/[...slug].vue b/app/pages/[...slug].vueindex 14637cd1..e9916389 100644--- a/app/pages/[...slug].vue+++ b/app/pages/[...slug].vue@@ -70,7 +70,7 @@ watch(} else if (!currentPhotoId) {closeViewer()useHead({- title: $t('title.gallery'),+ title: '',})}},