]> git.ardis.lu - ardislu.dev/commitdiff
Update document title on home page
authorArdis Lu <ardisglu@gmail.com>
Sun, 27 Feb 2022 05:06:30 +0000 (21:06 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sun, 27 Feb 2022 05:06:30 +0000 (21:06 -0800)
script.js

index 83e5d96b90e58c187ec3996a6d765db96532fc8a..0bb9f929b5fa227141ecae5fc8fc7bee7bd3e0c0 100644 (file)
--- a/script.js
+++ b/script.js
@@ -104,6 +104,7 @@ async function showPage(path) {
   }
 
   if (path === 'home' || path === '') {
+    document.title = 'ardislu.dev';
     homeMain.innerHTML = '';
     for (const [path, post] of posts) {
       homeMain.insertAdjacentHTML('beforeend',
This page took 0.04254 seconds and 4 git commands to generate.