Skip to content

Commit

Permalink
change title and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
icyfry committed Sep 16, 2024
1 parent 5c91cd2 commit bbe6027
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>icyfry</title>
<title>icyfry.bzh</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
Expand Down
Binary file modified public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/favicon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/favicon-2-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/favicon-2-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/favicon-2-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const routes: RouteRecordRaw[] = [
{
path: '/me',
name: 'resume',
meta: {
title: 'Jonathan Le Brun',
},
component: MeView,
props: true
},
Expand All @@ -29,4 +32,9 @@ const router = createRouter({
routes
})

const DEFAULT_TITLE: string = "icyfry.bzh";
router.beforeEach((to) => {
document.title = (to.meta.title || DEFAULT_TITLE) as string;
});

export default router

0 comments on commit bbe6027

Please sign in to comment.