update meta tag for homepage too

This commit is contained in:
hippoz 2020-10-25 18:50:03 +02:00
parent 29fed2b53a
commit d931ad2beb
2 changed files with 2 additions and 1 deletions

View file

@ -7,7 +7,7 @@
<link rel="stylesheet" href="/res/style.css"> <link rel="stylesheet" href="/res/style.css">
<meta name="description" content="Hippoz's homepage on hippoz.xyz with a file server, a git server, an about page, and a contact page."> <meta name="description" content="Hippoz's homepage on hippoz.xyz with a file server, a git server, an about page, a contact page, and a blog.">
</head> </head>
<body> <body>
<div class="card navigation noselect"> <div class="card navigation noselect">

View file

@ -23,6 +23,7 @@ const peformRouteAction = async (pathname) => {
switch (route) { switch (route) {
case '': { case '': {
A('#content-container').load('/pages/home.html'); A('#content-container').load('/pages/home.html');
A('meta[name="description"]').attr('content', "Hippoz's homepage on hippoz.xyz with a file server, a git server, an about page, a contact page, and a blog.");
break; break;
} }
case '/blog': { case '/blog': {