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:
parent
4294cc92b9
commit
f39c6352ac
@ -64,7 +64,10 @@ const config: Config = {
|
||||
}
|
||||
}
|
||||
},
|
||||
blog: {},
|
||||
blog: {
|
||||
blogSidebarTitle: 'All posts',
|
||||
blogSidebarCount: 'ALL'
|
||||
},
|
||||
theme: {
|
||||
customCss: [
|
||||
'./src/css/custom.css',
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user