mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
chore(website): make carbon work on blog pages
This commit is contained in:
@@ -64,7 +64,10 @@ const config: Config = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
blog: {},
|
blog: {
|
||||||
|
blogSidebarTitle: 'All posts',
|
||||||
|
blogSidebarCount: 'ALL'
|
||||||
|
},
|
||||||
theme: {
|
theme: {
|
||||||
customCss: [
|
customCss: [
|
||||||
'./src/css/custom.css',
|
'./src/css/custom.css',
|
||||||
|
@@ -1,6 +1,14 @@
|
|||||||
(function () {
|
(function () {
|
||||||
function attachAd() {
|
function attachAd() {
|
||||||
var wrapper = document.getElementById('sidebar-ads');
|
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) {
|
if (wrapper) {
|
||||||
var el = document.createElement('script');
|
var el = document.createElement('script');
|
||||||
el.setAttribute('type', 'text/javascript');
|
el.setAttribute('type', 'text/javascript');
|
||||||
|
Reference in New Issue
Block a user