github redirect page
This commit is contained in:
@@ -65,7 +65,6 @@ export default defineNuxtConfig({
|
||||
minify: true,
|
||||
prerender: {
|
||||
crawlLinks: true,
|
||||
ignore: ['/github'],
|
||||
routes: ['/sitemap.xml', '/rss.xml']
|
||||
},
|
||||
},
|
||||
|
||||
16
pages/github/[...repo].vue
Normal file
16
pages/github/[...repo].vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<script setup>
|
||||
let route = useRoute()
|
||||
let repoLink = "https://github.com/juls0730/";
|
||||
|
||||
if (route.params.repo) {
|
||||
repoLink += route.params.repo
|
||||
}
|
||||
|
||||
navigateTo(repoLink, { external: true })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="min-h-screen">
|
||||
You are being redirected to <a :href="repoLink">GitHub</a> shortly...
|
||||
</div>
|
||||
</template>
|
||||
@@ -174,7 +174,7 @@ let projects: Project[] = [
|
||||
<section
|
||||
class="max-w-full col-start-2 xs:!col-start-3 col-span-10 xs:col-span-8 pb-6 mb-4 gap-4 justify-evenly grid grid-cols-1 smyes :grid-cols-[repeat(auto-fit,_minmax(50px,_340px))] lg:grid-cols-[repeat(auto-fit,_minmax(50px,_300px))]">
|
||||
<ProjectCard v-for="project in projects" :name="project.name" :headerIcon="project.headerIcon"
|
||||
:icons="project.icons" :githubLink="project.repo" :externalLink="project.externalLink">
|
||||
:icons="project.icons" :repo="project.repo" :externalLink="project.externalLink">
|
||||
<slot>
|
||||
<p v-html="project.body" />
|
||||
</slot>
|
||||
|
||||
Reference in New Issue
Block a user