mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-26 05:02:48 +00:00
15 lines
431 B
JavaScript
15 lines
431 B
JavaScript
import '../styles/global.scss'
|
|
import {
|
|
suffix as siteSuffix
|
|
} from 'virtual:jekyll-config'
|
|
|
|
if (siteSuffix) {
|
|
if (!document.location.hostname.endsWith(siteSuffix) &&
|
|
!document.location.hostname.endsWith(siteSuffix + '.')) {
|
|
document.title = document.title.replace(/(清华)|(tsinghua)|(tuna)/gi, '');
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
document.body.classList.add('nonthu');
|
|
});
|
|
}
|
|
}
|