diff --git a/package.json b/package.json index 052aadd..0a9c84d 100644 --- a/package.json +++ b/package.json @@ -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/", diff --git a/src/router/index.js b/src/router/index.js index 48abdf6..ae41f53 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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;