File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
22import Post from './Post' ;
33
4- const PostList = ( { posts, twoColumns } ) => {
4+ const PostList = ( { posts, threeColumns } ) => {
55 return (
66 < div
77 className = { `row row-cols-1 row-cols-md-2 ${
8- twoColumns ? 'row-cols-lg-2 ' : 'row-cols-lg-3 '
8+ threeColumns ? 'row-cols-lg-3 ' : 'row-cols-lg-4 '
99 } `}
1010 >
1111 { posts . map ( ( post ) => (
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { graphql } from 'gatsby';
33import Helmet from 'react-helmet' ;
44import SEO from '../components/SEO' ;
55import Layout from '../components/Layout' ;
6- import Twitter from '../components/Twitter' ;
76import PostList from '../components/PostList' ;
87import HeroImage from '../components/HeroImage' ;
98import FeaturesHome from '../components/FeaturesHome' ;
@@ -55,12 +54,9 @@ const Home = (props) => {
5554
5655 < div className = 'mt-8 mb-3' >
5756 < div className = 'row' >
58- < div className = 'col-12 col-lg-8 ' >
57+ < div className = 'col-12 col-lg-12 ' >
5958 < h1 > Últimos posts</ h1 >
60- < PostList posts = { lastPosts } twoColumns />
61- </ div >
62- < div className = 'col-12 col-lg-4' >
63- < Twitter />
59+ < PostList posts = { lastPosts } threeColumns />
6460 </ div >
6561 </ div >
6662 </ div >
@@ -115,7 +111,7 @@ export const query = graphql`
115111 posts: allMarkdownRemark(
116112 filter: { fileAbsolutePath: { regex: "/posts/.*/" } }
117113 sort: { fields: [frontmatter___date], order: DESC }
118- limit: 2
114+ limit: 3
119115 ) {
120116 edges {
121117 node {
You can’t perform that action at this time.
0 commit comments