Skip to content

Commit 7f255f7

Browse files
authored
Merge pull request #145 from python-spain/remove_twitter
Remove twitter column and add a three column layout
2 parents dda349b + cf1c442 commit 7f255f7

3 files changed

Lines changed: 5 additions & 34 deletions

File tree

src/components/PostList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React from 'react';
22
import 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) => (

src/components/Twitter.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/pages/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { graphql } from 'gatsby';
33
import Helmet from 'react-helmet';
44
import SEO from '../components/SEO';
55
import Layout from '../components/Layout';
6-
import Twitter from '../components/Twitter';
76
import PostList from '../components/PostList';
87
import HeroImage from '../components/HeroImage';
98
import 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 {

0 commit comments

Comments
 (0)