1
0
mirror of https://github.com/go-task/task.git synced 2025-01-30 05:39:17 +02:00

chore(website): make carbon work on blog pages

This commit is contained in:
Andrey Nering 2024-06-05 21:51:49 -03:00
parent 4294cc92b9
commit f39c6352ac
2 changed files with 12 additions and 1 deletions

View File

@ -64,7 +64,10 @@ const config: Config = {
}
}
},
blog: {},
blog: {
blogSidebarTitle: 'All posts',
blogSidebarCount: 'ALL'
},
theme: {
customCss: [
'./src/css/custom.css',

View File

@ -1,6 +1,14 @@
(function () {
function attachAd() {
var wrapper = document.getElementById('sidebar-ads');
var blogSidebar = document.querySelector('[class*="BlogSidebar"]');
if (!wrapper && blogSidebar) {
wrapper = document.createElement('div');
wrapper.id = 'sidebar-ads';
blogSidebar.appendChild(wrapper);
}
if (wrapper) {
var el = document.createElement('script');
el.setAttribute('type', 'text/javascript');