From 6af01afb44512a7ddeca393d5fad046b3bcb466a Mon Sep 17 00:00:00 2001 From: DarthSim Date: Mon, 21 Feb 2022 14:04:18 +0600 Subject: [PATCH] Add suffix to docs titles --- docs/index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/index.html b/docs/index.html index 08eb56b5..f8a166e5 100644 --- a/docs/index.html +++ b/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; + }); } ] }