Skip to content

Commit

Permalink
refactor(share + newsletter): add addthis and a newsletter link
Browse files Browse the repository at this point in the history
  • Loading branch information
gael-boyenval authored and eko committed Jun 23, 2017
1 parent af083fb commit 2e06331
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
8 changes: 8 additions & 0 deletions _includes/footer.html
@@ -1,4 +1,12 @@
{% if site.theme_settings.footer_text %}
<footer class="slice newsletter">
<div class="container">
<a class="newsletter-link" target="_blank" href="https://mailchimp.com">
abonnez vous à notre newsletter !
</a>
</div>
</footer>

<footer class="slice site-footer">
<p class="text container">{{ site.theme_settings.footer_text }}</p>
</footer>
Expand Down
3 changes: 2 additions & 1 deletion _includes/head.html
Expand Up @@ -37,7 +37,8 @@
</script>
{% endif %}

<!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-592d8d29f5f816c3"></script>
<!-- Go to www.addthis.com/dashboard to customize your tools --> <!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-592d8d29f5f816c3"></script>
<script src="{{ "/js/moment.js" | prepend: site.baseurl }}"></script>
<script src="https://cdn.jsdelivr.net/algoliasearch/3/algoliasearchLite.min.js"></script>
<script src="{{ "/js/search.js" | prepend: site.baseurl }}"></script>
Expand Down
3 changes: 2 additions & 1 deletion _includes/share.html
@@ -1 +1,2 @@
<!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_inline_share_toolbox"></div>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_inline_share_toolbox"></div>
6 changes: 0 additions & 6 deletions _layouts/post.html
Expand Up @@ -49,12 +49,6 @@ <h1 class="page-heading-title">{{ page.title }}</h1>
</div>
{% endif %}

<!-- Share -->
{% if site.theme_settings.share_button %}
<div class="share-button">
{% include share.html %}
</div>
{% endif %}

{% include links.html %}

Expand Down
8 changes: 8 additions & 0 deletions _sass/objects/_newsletter.scss
@@ -0,0 +1,8 @@
.newsletter {
background: $brand-yellow;
text-align: center;

&-link {
@extend %h2;
}
}
1 change: 1 addition & 0 deletions css/main.scss
Expand Up @@ -20,6 +20,7 @@
@import 'objects/read-also';
@import 'objects/search-bar';
@import 'objects/avatar';
@import 'objects/newsletter';

// Posts
@import 'layouts/posts';
Expand Down

0 comments on commit 2e06331

Please sign in to comment.