Skip to content

Commit a1c01d5

Browse files
committed
added proper index and author page
1 parent b92c8f2 commit a1c01d5

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

_config.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ defaults:
3232
values:
3333
permalink: blog/:categories/:year/:month/:title/
3434
-
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
4041

4142
collections:
4243
authors:

_layouts/author.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
layout: default
3-
43
---
54
{% assign primary_title = site.headings.authors %}
65
{% assign xlayout_class = 'sidebar-right' %}
@@ -18,7 +17,7 @@ <h2>Posts by {{page.name}}</h2>
1817
{% capture content_related %}
1918
<div role="complementary">
2019
<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 %}
2221

2322
<p>{{ page.content | markdownify }}</p>
2423
</div>

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1>{{page.title}}</h1>
3838
{% for author_short_name in page.authors %}
3939
{% assign author = site.authors | where: 'short_name', author_short_name | first %}
4040
<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 %}
4242

4343
<p>{{ author.content | markdownify }}</p>
4444
{% endfor %}

_sass/_opensearch.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,9 @@ dl.list-features {
114114

115115
.homepage .list-features p + dt {
116116
padding-top: 0.5em;
117+
}
118+
119+
.author-photo {
120+
width: 180px;
121+
height: auto;
117122
}

authors/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
layout: default
2+
layout: fullwidth
33
title: Authors
4+
primary_title: Authors
45
---
5-
<h1>Authors</h1>
66

77
<ul>
88
{% for author in site.authors %}
9-
<li>{{ author.name }}</li>
9+
<li><a href="{{ author.url }}">{{ author.name }}</a></li>
1010
{% endfor %}
11-
</ul>
11+
</ul>

0 commit comments

Comments
 (0)