mirror of
https://github.com/go-task/task.git
synced 2025-05-31 23:19:42 +02:00
Website: Remove Carbon
This commit is contained in:
parent
1920ee38c3
commit
a36b1b9cec
@ -41,10 +41,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
blog: false,
|
blog: false,
|
||||||
theme: {
|
theme: {
|
||||||
customCss: [
|
customCss: [require.resolve('./src/css/custom.css')]
|
||||||
require.resolve('./src/css/custom.css'),
|
|
||||||
require.resolve('./src/css/carbon.css')
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
gtag: {
|
gtag: {
|
||||||
trackingID: 'G-4RT25NXQ7N',
|
trackingID: 'G-4RT25NXQ7N',
|
||||||
@ -187,14 +184,7 @@ const config = {
|
|||||||
apiKey: '34b64ae4fc8d9da43d9a13d9710aaddc',
|
apiKey: '34b64ae4fc8d9da43d9a13d9710aaddc',
|
||||||
indexName: 'taskfile'
|
indexName: 'taskfile'
|
||||||
}
|
}
|
||||||
}),
|
})
|
||||||
|
|
||||||
scripts: [
|
|
||||||
{
|
|
||||||
src: '/js/carbon.js',
|
|
||||||
async: true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
@ -13,10 +13,6 @@ const sidebars = {
|
|||||||
type: 'link',
|
type: 'link',
|
||||||
label: 'Chinese | 中国人',
|
label: 'Chinese | 中国人',
|
||||||
href: CHINESE_URL
|
href: CHINESE_URL
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'html',
|
|
||||||
value: '<div id="sidebar-ads"></div>'
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@ -1,65 +0,0 @@
|
|||||||
#carbonads * {
|
|
||||||
margin: initial;
|
|
||||||
padding: initial;
|
|
||||||
}
|
|
||||||
#carbonads {
|
|
||||||
display: flex;
|
|
||||||
max-width: 330px;
|
|
||||||
background-color: hsl(0, 0%, 98%);
|
|
||||||
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, 0.1);
|
|
||||||
z-index: 100;
|
|
||||||
}
|
|
||||||
#carbonads a {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
#carbonads a:hover {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
#carbonads span {
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
#carbonads .carbon-wrap {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
#carbonads .carbon-img {
|
|
||||||
display: block;
|
|
||||||
margin: 0;
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
#carbonads .carbon-img img {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
#carbonads .carbon-text {
|
|
||||||
font-size: 13px;
|
|
||||||
padding: 10px;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
line-height: 1.5;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
#carbonads .carbon-poweredby {
|
|
||||||
display: block;
|
|
||||||
padding: 6px 8px;
|
|
||||||
background: #f1f1f2;
|
|
||||||
text-align: center;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.5px;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 8px;
|
|
||||||
line-height: 1;
|
|
||||||
border-top-left-radius: 3px;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme='dark'] #carbonads {
|
|
||||||
background-color: hsl(0, 0%, 35%);
|
|
||||||
box-shadow: 0 1px 4px 1px hsl(0, 0%, 55%);
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme='dark'] #carbonads .carbon-poweredby {
|
|
||||||
background-color: hsl(0, 0%, 55%);
|
|
||||||
}
|
|
@ -23,11 +23,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#carbonads {
|
|
||||||
margin-top: 30px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gold-sponsors {
|
.gold-sponsors {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
0
docs/static/js/.keep
vendored
Normal file
0
docs/static/js/.keep
vendored
Normal file
29
docs/static/js/carbon.js
vendored
29
docs/static/js/carbon.js
vendored
@ -1,29 +0,0 @@
|
|||||||
(function () {
|
|
||||||
function attachAd() {
|
|
||||||
var el = document.createElement('script');
|
|
||||||
el.setAttribute('type', 'text/javascript');
|
|
||||||
el.setAttribute('id', '_carbonads_js');
|
|
||||||
el.setAttribute(
|
|
||||||
'src',
|
|
||||||
'//cdn.carbonads.com/carbon.js?serve=CESI65QJ&placement=taskfiledev'
|
|
||||||
);
|
|
||||||
el.setAttribute('async', 'async');
|
|
||||||
|
|
||||||
var wrapper = document.getElementById('sidebar-ads');
|
|
||||||
wrapper.innerHTML = '';
|
|
||||||
wrapper.appendChild(el);
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout(function () {
|
|
||||||
attachAd();
|
|
||||||
|
|
||||||
var currentPath = window.location.pathname;
|
|
||||||
|
|
||||||
setInterval(function () {
|
|
||||||
if (currentPath !== window.location.pathname) {
|
|
||||||
currentPath = window.location.pathname;
|
|
||||||
attachAd();
|
|
||||||
}
|
|
||||||
}, 1000);
|
|
||||||
}, 1000);
|
|
||||||
})();
|
|
Loading…
x
Reference in New Issue
Block a user