Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Commit 0562384

Browse files
Update Bio component with info on new project
1 parent 24605e7 commit 0562384

File tree

2 files changed

+24
-29
lines changed

2 files changed

+24
-29
lines changed

content/assets/profile-pic.jpg

38.3 KB
Loading

src/components/bio.js

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import React from "react"
9-
import { StaticQuery, graphql } from "gatsby"
9+
import { StaticQuery, graphql, Link } from "gatsby"
1010
import Image from "gatsby-image"
1111

1212
import { rhythm } from "../utils/typography"
@@ -18,34 +18,29 @@ function Bio() {
1818
render={data => {
1919
const { author, social } = data.site.siteMetadata
2020
return (
21-
<div
22-
style={{
23-
display: `flex`,
24-
marginBottom: rhythm(2.5),
25-
}}
26-
>
27-
<Image
28-
fixed={data.avatar.childImageSharp.fixed}
29-
alt={author}
30-
style={{
31-
marginRight: rhythm(1 / 2),
32-
marginBottom: 0,
33-
minWidth: 50,
34-
borderRadius: `100%`,
35-
}}
36-
imgStyle={{
37-
borderRadius: `50%`,
38-
}}
39-
/>
40-
<p>
41-
Written by <strong>{author}</strong> who lives and works in San
42-
Francisco building useful things.
43-
{` `}
44-
<a href={`https://twitter.com/${social.twitter}`}>
45-
You should follow him on Twitter
46-
</a>
47-
</p>
48-
</div>
21+
<React.Fragment>
22+
<div
23+
style={{ display: `flex` }}
24+
>
25+
<Image
26+
fixed={data.avatar.childImageSharp.fixed}
27+
alt={author}
28+
style={{
29+
marginRight: rhythm(1 / 2),
30+
marginBottom: 0,
31+
minWidth: 50,
32+
borderRadius: `100%`,
33+
}}
34+
imgStyle={{
35+
borderRadius: `50%`,
36+
}}
37+
/>
38+
<p>
39+
This project is a fork from <a href="https://github.com/gatsbyjs/gatsby-starter-blog">Gatsby's starter blog</a>, with added Site Search functionality thanks to <a href="https://lunrjs.com/">Lunr.js</a>. It is maintained by <a href="https://twitter.com/_lukewh">{author}</a>, who wrote a tutorial on <a href="https://assortment.io/posts/gatsby-site-search-lunr-js">building this from scratch</a>.
40+
</p>
41+
</div>
42+
<p style={{ marginBottom: rhythm(2.5) }}><Link to="/search">Search all posts</Link></p>
43+
</React.Fragment>
4944
)
5045
}}
5146
/>

0 commit comments

Comments
 (0)