Merge pull request #473 from rstacruz/feature/codefund

Add codefund.io
This commit is contained in:
Rico Sta. Cruz 2018-03-29 12:47:35 +08:00 committed by GitHub
commit 9bb866cf36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 35 additions and 7 deletions

View File

@ -1,4 +1,4 @@
enabled: true
enabled: false
token: "653d56e083fec2a9ae1b6c7cde4e5f5f"
title: "Rollbar"
description: "Real-time error monitoring, alerting, and analytics for developers 🚀"

2
_data/codefund.yml Normal file
View File

@ -0,0 +1,2 @@
enabled: true
token: "c2c8bc62-c275-4c7a-a304-74335c5a1cd0"

View File

@ -0,0 +1,4 @@
<aside class='codefund-sponsor' data-js-no-preview>
<script src='https://codesponsor.io/scripts/{{ site.data.codefund.token }}/embed.js?template=centered'></script>
<div id='codefund_ad'></div>
</aside>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -36,6 +36,12 @@
{% include 2017/berry-sponsor.html %}
</div>
{% endif %}
{% if site.data.codefund.enabled %}
<div class='adbox' role='complementary'>
{% include 2017/codefund.html %}
</div>
{% endif %}
</div>
<div class='pages-list' role='main'>

View File

@ -19,6 +19,12 @@
</div>
{% endif %}
{% if site.data.codefund.enabled %}
<div class='ad -codefund' role='complementary'>
{% include 2017/codefund.html %}
</div>
{% endif %}
{% if site.data.carbon.enabled %}
<div class='HeadlineAd ad -carbon' role='complementary'>
<script async src='{{ site.data.carbon.src }}' id="_carbonads_js"></script>

View File

@ -0,0 +1,10 @@
.codefund-sponsor {
& {
min-height: 114px;
}
.cf-wrapper {
margin-left: auto;
margin-right: auto;
}
}

View File

@ -32,7 +32,7 @@
}
& > .adbox {
margin: 32px auto;
margin: 16px auto;
}
@media (max-width: 480px) {

View File

@ -23,6 +23,7 @@
@import './components/back-button';
@import './components/berry-sponsor';
@import './components/body-area';
@import './components/codefund-sponsor';
@import './components/comments-area';
@import './components/comments-details';
@import './components/comments-section';
@ -52,4 +53,3 @@
@import './components/site-header';
@import './components/top-nav';
@import './components/top-sheet';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long