Skip to content

Commit 46738ef

Browse files
Merge pull request sergiokopplin#141 from sergiokopplin/multiple-authors
adding multiple authors
2 parents 9206fff + a9eb934 commit 46738ef

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

_config.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# main text of home
22
name: John Doe
3-
bio: 'A Man who travels the world eating noodles'
3+
bio: A Man who travels the world eating noodles
44

55
# if it's an external image, update below for true
66
# better with square images
77
external-image: false
8-
picture: 'assets/images/profile.jpg'
8+
picture: assets/images/profile.jpg
99

1010
url: http://koppl.in/indigo
1111
# your url: http://USERNAME.github.io
@@ -39,6 +39,18 @@ medium: medium
3939
vimeo: myvimeo
4040
email: myemail@gmail.com
4141

42+
authors:
43+
john:
44+
name: John Doe
45+
bio: A Man who travels the world eating noodles
46+
external-image: false
47+
picture: assets/images/profile.jpg
48+
james:
49+
name: James Foster
50+
bio: A Man who develops software with coffee
51+
external-image: false
52+
picture: assets/images/james.jpg
53+
4254
# do you want a larger site? change the option below
4355
# options: [normal, large] | default: normal
4456
# normal = 560px / large = 810px

_includes/author.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<section class="author{% if site.disqus == false %} no-disqus{% endif %}">
22
<div class="toleft">
3-
<img class="selfie" src="{% if site.external-image == true %}{{ site.picture }}{% else %}{{ site.url }}/{{ site.picture }}{% endif %}" alt="{{ site.name }}">
3+
<img class="selfie" src="{% if site.authors[page.author].external-image == true %}{{ site.authors[page.author].picture }}{% else %}{{ site.url }}/{{ site.authors[page.author].picture }}{% endif %}" alt="{{ site.authors[page.author].name }}">
44
</div>
55

66
<div class="toright">
7-
<h4 class="name">{{ site.name }}</h4>
8-
<p class="bio">{{ site.bio }}</p>
7+
<h4 class="name">{{ site.authors[page.author].name }}</h4>
8+
<p class="bio">{{ site.authors[page.author].bio }}</p>
99

1010
<div class="share">
1111
<a class="twitter" href="https://twitter.com/intent/tweet?text={{ site.url }}{{ page.url }} - {{ page.title }} by @{{ site.twitter }}">

_posts/2015-02-24-markdown-extra-components.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ tag:
77
- components
88
- extra
99
blog: true
10+
author: james
1011
---
1112

1213
## Summary:

_posts/2016-02-24-markdown-common-elements.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ tag:
77
- elements
88
blog: true
99
star: true
10+
author: john
1011
---
1112

1213
## Summary:

assets/images/james.jpg

41.8 KB
Loading

0 commit comments

Comments
 (0)