<commit_before>import React from 'react'
import Link from 'gatsby-link'


export default function BlogIndex({
	data, // this prop will be injected by the GraphQL query below.
}) {
	console.log("DATA", data);
	const { markdownRemark } = data; // data.markdownRemark holds our post data
	const { frontmatter, html } = markdownRemark;
	return (
		<div className="blog-post-excerpt-container">
			<div className="blog-post-excerpt">
				<h1>{frontmatter.title}</h1>
				<h4>{frontmatter.date}</h4>
			</div>
		</div>
	);
}


export const pageQuery = graphql`
query IndexQuery($path: String!) {
	allMarkdownRemark(limit: 10) {
	  edges {
		node {
		  frontmatter {
			title
			path
		  }
		}
	  }
	}
  }
  
`;<commit_msg>index blog<commit_after>import React from 'react'
import Link from 'gatsby-link'


export default function BlogIndex(props) {
	const { allMarkdownRemark } = props.data; // data.markdownRemark holds our post data
	const { edges } = allMarkdownRemark;
	return (
		<div className="index-blog-container">
			{ edges.map( (edge) => {
				const { node } = edge;
				const html = node.html.slice(0,300) + "...";
				return (
				<div className="item-index-blog">
					<Link to={node.frontmatter.path} >
						<h2>{node.frontmatter.title}</h2>
					</Link>
					<div
					className="excerpt-item-index-blog"
					dangerouslySetInnerHTML={{ __html: html }}
					/>
				</div>
				)
			})}
		</div>
	);
}


export const pageQuery = graphql`
	query IndexQuery {
		allMarkdownRemark(limit: 10) {
			edges {
				node {
					html
					frontmatter {
						title
						path
					}
				}
			}
		}
	}
`;
{'fraction_non_alphanumeric': 0.14178638351030606, 'fraction_numerical': 0.008744534665833853, 'mean_word_length': 2.860240963855422, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 21, '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': '7203067', 'n_tokens_mistral': 688, 'n_tokens_neox': 552, 'n_words': 123}