Przeglądaj źródła

Add suffix to docs titles

DarthSim 3 lat temu
rodzic
commit
6af01afb44
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      docs/index.html

+ 7 - 0
docs/index.html

@@ -50,6 +50,8 @@
       document.getElementsByTagName("head")[0].appendChild(clink)
     }
 
+    var documentTitleBase = document.title;
+
     window.$docsify = {
       logo: '/assets/logo.svg',
       name: 'imgproxy',
@@ -72,6 +74,11 @@
               clink.href = "https://docs.imgproxy.net" + vm.route.path
             }
           });
+        },
+        function (hook, vm) {
+          hook.doneEach((content) => {
+            document.title += " | " + documentTitleBase;
+          });
         }
       ]
     }