commit 80c9b75bed01527986115a3f796acdf364f16da1
parent 915408984926b6a293cbc8cddf334d6461bb3226
Author: Agastya Chandrakant <acagastya@outlook.com>
Date: Sun, 19 Jul 2020 07:41:00 +0530
Add another quote
Diffstat:
2 files changed, 15 insertions(+), 98 deletions(-)
diff --git a/quotes/kindness-can-only-5041e9f1/kindness-can-only-5041e9f1.md b/quotes/kindness-can-only-5041e9f1/kindness-can-only-5041e9f1.md
@@ -0,0 +1,15 @@
+---
+attributed: true
+author: 'Pashtu saying'
+date: '2013-10-08'
+draft: false
+lang: 'en'
+misattributed: false
+path: '/kindness-can-only-5041e9f1'
+tags: ['Kindness']
+title: "Kindness can only be repaid with kindness. It can't be repaid with expressions like 'thank you'."
+unverified: false
+---
+
+# *Kindness can only be repaid with kindness. It can't be repaid with expressions like 'thank you'.*
+— Pashtu saying, <cite><abbr title="ISBN-13: 9780297870913">I am Malala</abbr></cite>, by Malala Yousafzai.
diff --git a/src/pages/quote.js b/src/pages/quote.js
@@ -1,98 +0,0 @@
-import React from 'react';
-import { Link, graphql } from 'gatsby';
-import Layout from '../components/layout';
-import SEO from '../components/seo';
-import { siteMetadata } from '../../gatsby-config';
-
-const { repo } = siteMetadata;
-
-function Blog({ data }) {
- const { edges } = data.allMarkdownRemark;
- return (
- <Layout heading={`Quotes (${edges.length})`} slug="quote">
- <SEO title="Quotes" />
- <div className="home-sections-container">
- <div className="home-sections">
- <section id="recent-posts" className="home-section">
- <div className="list-container">
- <ul className="list">
- {edges.map(edge => {
- const {
- attributed,
- author,
- misattributed,
- path,
- title,
- unverified,
- } = edge.node.frontmatter;
- return (
- <li className="list-item" key={path}>
- <article>
- <div className="meta">
- <span>
- <span className="screen-reader">Quote by </span>
- <Link to={`${repo}/authors/${author}`}>{author}</Link>
- {attributed ? (
- <span>
- <sup>
- <em>!</em>
- </sup>
- </span>
- ) : null}
- {misattributed ? (
- <span>
- <sup>
- <em>?</em>
- </sup>
- </span>
- ) : null}
- {unverified ? (
- <span>
- <sup>
- <em>#</em>
- </sup>
- </span>
- ) : null}
- </span>
- </div>
- <header className="list-item-header">
- <h3 className="list-item-title">
- <Link to={`${repo}/quote/${path}`}>{title}</Link>
- </h3>
- </header>
- </article>
- </li>
- );
- })}
- </ul>
- </div>
- </section>
- </div>
- </div>
- </Layout>
- );
-}
-
-export const query = graphql`
- query {
- allMarkdownRemark(
- sort: { order: DESC, fields: [frontmatter___date] }
- filter: { frontmatter: { draft: { ne: true } } }
- ) {
- edges {
- node {
- frontmatter {
- attributed
- author
- misattributed
- path
- title
- unverified
- }
- }
- }
- }
- }
-`;
-
-export default Blog;