mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 14:59:14 +01:00
Move author photo to config
This commit is contained in:
parent
8f6203460b
commit
4cc45f66da
@ -24,6 +24,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
author: {
|
author: {
|
||||||
name: 'John Doe',
|
name: 'John Doe',
|
||||||
|
photo: '/photo.jpg',
|
||||||
bio: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
|
bio: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
|
||||||
contacts: {
|
contacts: {
|
||||||
email: '#',
|
email: '#',
|
||||||
|
@ -21,6 +21,13 @@ module.exports = {
|
|||||||
name: 'pages'
|
name: 'pages'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
resolve: "gatsby-source-filesystem",
|
||||||
|
options: {
|
||||||
|
name: "assets",
|
||||||
|
path: `${__dirname}/static`
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
resolve: 'gatsby-plugin-feed',
|
resolve: 'gatsby-plugin-feed',
|
||||||
options: {
|
options: {
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'gatsby';
|
import { withPrefix, Link } from 'gatsby';
|
||||||
import profilePic from '../../../pages/photo.jpg';
|
|
||||||
import styles from './Author.module.scss';
|
import styles from './Author.module.scss';
|
||||||
|
|
||||||
const Author = ({ author, isIndex }) => (
|
const Author = ({ author, isIndex }) => (
|
||||||
<div className={styles['author']}>
|
<div className={styles['author']}>
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<img
|
<img
|
||||||
src={profilePic}
|
src={withPrefix(author.photo)}
|
||||||
className={styles['author__photo']}
|
className={styles['author__photo']}
|
||||||
width="75"
|
width="75"
|
||||||
height="75"
|
height="75"
|
||||||
|
@ -40,6 +40,7 @@ export const Sidebar = (props) => (
|
|||||||
}
|
}
|
||||||
author {
|
author {
|
||||||
name
|
name
|
||||||
|
photo
|
||||||
bio
|
bio
|
||||||
contacts {
|
contacts {
|
||||||
twitter
|
twitter
|
||||||
|
Loading…
Reference in New Issue
Block a user