/
githubmirror
/
gogs
Обзор
Документация
Войти
/
githubmirror
/
gogs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
latest-commit-build
docs/scripts/title.js
15 строк
453 B
ᴊᴏᴇ ᴄʜᴇɴ
docs: migrate to Mintlify (#8154)
08 фев 2026, 01:32
Не верифицирован
08 фев 2026, 01:32
9dd3e58
Код
Авторство
О чём код?
// Fix landing page tab title: "Introduction - ..." → "Gogs - ..." (function () { var old = "Introduction - Gogs"; var fix = function () { if (document.title.startsWith(old)) { document.title = document.title.replace(old, "Gogs"); } }; new MutationObserver(fix).observe( document.querySelector("title") || document.head, { childList: true, subtree: true, characterData: true } ); fix(); setTimeout(fix, 100); })();