quotes

My favourite quotes. (gatsbyjs)
git clone http://git.hanabi.in/repos/quotes.git
Log | Files | Refs | README | LICENSE

commit 64312ae7da749f4216c63145ebc808b794ccb5eb
parent 544f68e72221f9e583e2f459f9c09c4ebb8f4f62
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Wed, 11 Mar 2020 17:05:31 +0530

Add random in header

Diffstat:
Msrc/components/header.js | 7+++++++
Msrc/pages/random.js | 5+----
2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/components/header.js b/src/components/header.js @@ -28,6 +28,13 @@ function Header({ description, link = '/', showHeader, siteTitle, slug }) { <Link to="/about">About</Link> )} </li> + <li> + {slug == 'random' ? ( + <BoldEntry text="Random" /> + ) : ( + <Link to="/random">Random</Link> + )} + </li> </ul> </nav> diff --git a/src/pages/random.js b/src/pages/random.js @@ -17,14 +17,11 @@ function RandomQuotePage({ data }) { } = edges[rnd].node.frontmatter; return ( - <Layout> + <Layout slug="random" heading="Random Quote"> <SEO title="Random Quote" /> <div className="home-sections-container"> <div className="home-sections"> <section id="recent-posts" className="home-section"> - <header> - <h2 className="home-section-title title">Random Quote</h2> - </header> <div className="list-container"> <ul className="list"> <article>