fix(nav icon route): comment out custom blog page title section but omitting every route to return back to homepage on icon avoiding router does not reset on blog page refresh realoads & remove route is blog function to automatically detect whether user on client side is within blog dir location or not

This commit is contained in:
Anda Toshiki 2024-09-13 04:50:10 -07:00
parent 00168ff363
commit 3e1fb8fde8
Signed by: andatoshiki
GPG Key ID: 443A8FB634CF898D

View File

@ -11,7 +11,7 @@ export default Vue.extend({
const path = this.$route.path const path = this.$route.path
if (path !== '/projects/premid' && path.startsWith('/projects/premid')) return '/projects/premid' if (path !== '/projects/premid' && path.startsWith('/projects/premid')) return '/projects/premid'
else if (this.routeIsBlog && this.$route.params?.slug) return '/blog' else if (this.routeIsBlog && this.$route.params?.slug) return '/'
else return '/' else return '/'
} }
} }
@ -33,11 +33,11 @@ export default Vue.extend({
/> --> /> -->
<!-- class="rounded-md bg-transparent ring-black transition-transform ring-2 ring-opacity-5 sm:transform hover:-rotate-6 flex-shrink-0 h-10 w-10" --> <!-- class="rounded-md bg-transparent ring-black transition-transform ring-2 ring-opacity-5 sm:transform hover:-rotate-6 flex-shrink-0 h-10 w-10" -->
<Transition name="fade" mode="out-in"> <!-- <Transition name="fade" mode="out-in">
<span v-if="routeIsBlog" class="text-black/90 text-sm uppercase font-medium dark:text-white/90"> <span v-if="routeIsBlog" class="text-black/90 text-sm uppercase font-medium dark:text-white/90">
Blog Blog
</span> </span>
</Transition> </Transition> -->
</SmartLink> </SmartLink>
<div class="flex space-x-2 items-center"> <div class="flex space-x-2 items-center">