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" token: "653d56e083fec2a9ae1b6c7cde4e5f5f"
title: "Rollbar" title: "Rollbar"
description: "Real-time error monitoring, alerting, and analytics for developers 🚀" 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 %} {% include 2017/berry-sponsor.html %}
</div> </div>
{% endif %} {% endif %}
{% if site.data.codefund.enabled %}
<div class='adbox' role='complementary'>
{% include 2017/codefund.html %}
</div>
{% endif %}
</div> </div>
<div class='pages-list' role='main'> <div class='pages-list' role='main'>

View File

@ -19,6 +19,12 @@
</div> </div>
{% endif %} {% endif %}
{% if site.data.codefund.enabled %}
<div class='ad -codefund' role='complementary'>
{% include 2017/codefund.html %}
</div>
{% endif %}
{% if site.data.carbon.enabled %} {% if site.data.carbon.enabled %}
<div class='HeadlineAd ad -carbon' role='complementary'> <div class='HeadlineAd ad -carbon' role='complementary'>
<script async src='{{ site.data.carbon.src }}' id="_carbonads_js"></script> <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 { & > .adbox {
margin: 32px auto; margin: 16px auto;
} }
@media (max-width: 480px) { @media (max-width: 480px) {

View File

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