Skip to content

Commit

Permalink
hash mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzopalaia committed Mar 12, 2024
1 parent e05b0f8 commit 83325c5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name": "personalportfolio",
"version": "0.0.0",
"private": true,
"homepage": "https://lorenzopalaia.github.io/Personal-Portfolio/",

"scripts": {
"dev": "vite",
"build": "vite build && cp robots.txt dist/ && cp sitemap.xml dist/",
Expand Down
32 changes: 16 additions & 16 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import WorkExperienceView from '../views/WorkExperienceView.vue'
import ProjectsView from '../views/ProjectsView.vue'
import EducationView from '../views/EducationView.vue'
import ExtraActivitiesView from '../views/ExtraActivitiesView.vue'
import { createRouter, createWebHashHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';
import WorkExperienceView from '../views/WorkExperienceView.vue';
import ProjectsView from '../views/ProjectsView.vue';
import EducationView from '../views/EducationView.vue';
import ExtraActivitiesView from '../views/ExtraActivitiesView.vue';

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(),
routes: [
{
path: '/',
name: 'home',
component: HomeView
component: HomeView,
},
{
path: '/work-experience',
name: 'work-experience',
component: WorkExperienceView
component: WorkExperienceView,
},
{
path: '/projects',
name: 'projects',
component: ProjectsView
component: ProjectsView,
},
{
path: '/education',
name: 'education',
component: EducationView
component: EducationView,
},
{
path: '/extra-activities',
name: 'extra-activities',
component: ExtraActivitiesView
}
]
})
component: ExtraActivitiesView,
},
],
});

export default router
export default router;

0 comments on commit 83325c5

Please sign in to comment.