From 2e06331a75862ce3e8f0193c189fab69cef3c956 Mon Sep 17 00:00:00 2001 From: Gael BOYENVAL Date: Fri, 16 Jun 2017 19:03:32 +0200 Subject: [PATCH] refactor(share + newsletter): add addthis and a newsletter link --- _includes/footer.html | 8 ++++++++ _includes/head.html | 3 ++- _includes/share.html | 3 ++- _layouts/post.html | 6 ------ _sass/objects/_newsletter.scss | 8 ++++++++ css/main.scss | 1 + 6 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 _sass/objects/_newsletter.scss diff --git a/_includes/footer.html b/_includes/footer.html index cfafeb917..a76f75b26 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,4 +1,12 @@ {% if site.theme_settings.footer_text %} + + diff --git a/_includes/head.html b/_includes/head.html index 51f7c0f67..7fbdba0e0 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -37,7 +37,8 @@ {% endif %} - + + diff --git a/_includes/share.html b/_includes/share.html index c99b764cf..975a3275e 100644 --- a/_includes/share.html +++ b/_includes/share.html @@ -1 +1,2 @@ -
+ +
diff --git a/_layouts/post.html b/_layouts/post.html index 0f81d3220..3d47c0833 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -49,12 +49,6 @@

{{ page.title }}

{% endif %} - -{% if site.theme_settings.share_button %} -
- {% include share.html %} -
-{% endif %} {% include links.html %} diff --git a/_sass/objects/_newsletter.scss b/_sass/objects/_newsletter.scss new file mode 100644 index 000000000..c91aa51a7 --- /dev/null +++ b/_sass/objects/_newsletter.scss @@ -0,0 +1,8 @@ +.newsletter { + background: $brand-yellow; + text-align: center; + + &-link { + @extend %h2; + } +} diff --git a/css/main.scss b/css/main.scss index 9c04739cf..7ade14b94 100644 --- a/css/main.scss +++ b/css/main.scss @@ -20,6 +20,7 @@ @import 'objects/read-also'; @import 'objects/search-bar'; @import 'objects/avatar'; +@import 'objects/newsletter'; // Posts @import 'layouts/posts';