remove cc banner. added llms.txt

This commit is contained in:
2026-07-17 15:01:48 +03:00
parent f84a09bda7
commit 3b7cca3cc7
10 changed files with 140 additions and 1617 deletions
-13
View File
@@ -48,19 +48,6 @@ document.addEventListener('DOMContentLoaded', () => {
});
}
// Sync cookieconsent dark mode reactively with the site theme
const syncCCTheme = () => {
const ccMain = document.getElementById('cc-main');
if (!ccMain) return;
ccMain.classList.toggle('cc--darkmode', htmlElement.classList.contains('dark'));
};
new MutationObserver(syncCCTheme).observe(htmlElement, {
attributes: true,
attributeFilter: ['class'],
});
// Initial sync in case banner is already mounted
setTimeout(syncCCTheme, 100);
// Sync Utterances (comments iframe) theme with the site theme.
// The iframe only reads its initial `theme` attribute once, so later
// changes must go through postMessage per the utterances protocol.