File tree 5 files changed +17
-12
lines changed 5 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,12 @@ defaults:
32
32
values :
33
33
permalink : blog/:categories/:year/:month/:title/
34
34
-
35
- scope :
36
- path : " "
37
- type : " authors"
38
- values :
39
- layout : " author"
35
+ scope :
36
+ path : " "
37
+ type : " authors"
38
+ values :
39
+ layout : " author"
40
+ permalink : /:collection/:name
40
41
41
42
collections :
42
43
authors :
Original file line number Diff line number Diff line change 1
1
---
2
2
layout: default
3
-
4
3
---
5
4
{% assign primary_title = site.headings.authors %}
6
5
{% assign xlayout_class = 'sidebar-right' %}
@@ -18,7 +17,7 @@ <h2>Posts by {{page.name}}</h2>
18
17
{% capture content_related %}
19
18
< div role ="complementary ">
20
19
< h2 > {{ page.name }}</ h2 >
21
- {% if page.photo %} < img src ="{{ page.photo }} " alt ="photo of {{page.name}} " /> {% endif %}
20
+ {% if page.photo %} < img class =" author-photo " src ="{{ page.photo }} " alt ="photo of {{page.name}} " /> {% endif %}
22
21
23
22
< p > {{ page.content | markdownify }}</ p >
24
23
</ div >
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ <h1>{{page.title}}</h1>
38
38
{% for author_short_name in page.authors %}
39
39
{% assign author = site.authors | where: 'short_name', author_short_name | first %}
40
40
< h2 > < a href ="{{ author.url }} "> {{ author.name }}</ a > </ h2 >
41
- {% if author.photo %} < img src ="{{ author.photo }} " alt ="photo of {{author.name}} " /> {% endif %}
41
+ {% if author.photo %} < img class =" author-photo " src ="{{ author.photo }} " alt ="photo of {{author.name}} " /> {% endif %}
42
42
43
43
< p > {{ author.content | markdownify }}</ p >
44
44
{% endfor %}
Original file line number Diff line number Diff line change @@ -114,4 +114,9 @@ dl.list-features {
114
114
115
115
.homepage .list-features p + dt {
116
116
padding-top : 0.5em ;
117
+ }
118
+
119
+ .author-photo {
120
+ width : 180px ;
121
+ height : auto ;
117
122
}
Original file line number Diff line number Diff line change 1
1
---
2
- layout: default
2
+ layout: fullwidth
3
3
title: Authors
4
+ primary_title: Authors
4
5
---
5
- < h1 > Authors</ h1 >
6
6
7
7
< ul >
8
8
{% for author in site.authors %}
9
- < li > {{ author.name }}</ li >
9
+ < li > < a href =" {{ author.url }} " > {{ author. name }}</ a > </ li >
10
10
{% endfor %}
11
- </ ul >
11
+ </ ul >
You can’t perform that action at this time.
0 commit comments