<commit_before><commit_msg>create /articles page that lists BlogIndex<commit_after>import React, { Component } from 'react';
import Link from 'gatsby-link';
import get from 'lodash/get';
import Helmet from 'react-helmet';
import { rhythm } from '../utils/typography';

class BlogIndex extends Component {
  render() {
    const pageLinks = [];
    const siteTitle = get(this, 'props.data.site.siteMetadata.title');
    const posts = get(this, 'props.data.allMarkdownRemark.edges');
    posts.forEach((post) => {
      if (post.node.path !== '/404/') {
        const title = get(post, 'node.frontmatter.title') || post.node.path;
        pageLinks.push(<li
          key={post.node.frontmatter.path}
          style={{
              marginBottom: rhythm(1 / 4),
              marginTop: rhythm(1 / 4),
            }}
        >
          <Link style={{ boxShadow: 'none' }} to={post.node.frontmatter.path}>
            {post.node.frontmatter.title}
          </Link>
                       </li>);
      }
    });

    return (
      <div>
        <Helmet title={get(this, 'props.data.site.siteMetadata.title')} />
        <ul
          style={{
            clear: 'both',
            paddingTop: '20px',
          }}
        >
          {pageLinks}
        </ul>
      </div>
    );
  }
}

export default BlogIndex;

export const pageQuery = graphql`
  query IndexQuery {
    site {
      siteMetadata {
        title
      }
    }
    allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {
      edges {
        node {
          frontmatter {
            path
          }
          frontmatter {
            title
          }
        }
      }
    }
  }
`;
{'fraction_non_alphanumeric': 0.13679808841099164, 'fraction_numerical': 0.005376344086021506, 'mean_word_length': 1.719155844155844, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '477299', 'n_tokens_mistral': 512, 'n_tokens_neox': 497, 'n_words': 104}