From 6196022748f275ff5f7d4b9e47b6c7ef87353827 Mon Sep 17 00:00:00 2001 From: Moris Zen Date: Thu, 13 Sep 2018 23:40:56 +0200 Subject: [PATCH] Add social media activity service on blog page --- src/components/SEO.js | 1 + src/styles/general.css | 25 +++++++++++++++++++++++++ src/templates/blog.js | 35 +++++++++++++++++++++++++++++++++-- 3 files changed, 59 insertions(+), 2 deletions(-) diff --git a/src/components/SEO.js b/src/components/SEO.js index 358095c..dea4678 100644 --- a/src/components/SEO.js +++ b/src/components/SEO.js @@ -72,6 +72,7 @@ class SEO extends Component { + {title} diff --git a/src/styles/general.css b/src/styles/general.css index 0fa8353..744250d 100644 --- a/src/styles/general.css +++ b/src/styles/general.css @@ -194,3 +194,28 @@ a { max-width: 95%; } } + +.crt-post-content-text, +.crt-post-header { + display: none; +} + +.crt-post-border, +.crt-post-c { + border-radius: 0.25rem !important; +} + +.crt-post-border { + border: none !important; + box-shadow: 0 6px 14px 0 rgba(51, 6, 13, 0.04), + 0 2px 3px 0 rgba(51, 6, 13, 0.12) !important; +} + +.crt-post:hover { + opacity: 0.5 !important; +} + +.crt-load-more { + text-transform: uppercase; + font-weight: 700; +} diff --git a/src/templates/blog.js b/src/templates/blog.js index b39e830..a5fc68d 100644 --- a/src/templates/blog.js +++ b/src/templates/blog.js @@ -4,6 +4,8 @@ import Link from 'gatsby-link' import PageIntro from '../components/PageIntro' import Card from '../components/Card' import SEO from '../components/SEO' +import Helmet from 'react-helmet' +import SectionIntro from '../components/SectionIntro' import PageTransition from 'gatsby-plugin-page-transitions' @@ -12,8 +14,28 @@ class Blog extends Component { const data = this.props.data return ( - -
+ + + + + + +
{data.allWordpressPost.edges.map(({ node }) => (
))}
+
+ +
+
) }