Skip to content

Commit 12260f7

Browse files
committed
author cleanup and article list
1 parent 9c121a7 commit 12260f7

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

app/scss/_contribute.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
main#contribute {
22

3-
img.author_image {
4-
max-width: 200px;
3+
img#author_image {
4+
max-height: 200px;
5+
}
6+
7+
div#author_image {
8+
min-height: 200px;
9+
margin: 0 0 20px 0;
510
}
611

712
}

app/templates/pages/authors/author.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
<div class="container">
1616
<h1>{{ author.name }}</h1>
1717

18-
<p><img src="{{ author.photo_url }}" alt="{{ author.name }}" class="author_image" /></p>
18+
<div id="author_image">
19+
<img src="{{ author.photo_url }}" alt="{{ author.name }}" id="author_image" />
20+
</div>
1921

2022
<p>{{ author.description }}</p>
2123

app/templates/pages/authors/authors.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ <h1>{{ file.fm.title_html | safe }}</h1>
2121
</p>
2222

2323
{% for a in file.data.authorsArray %}
24-
<p>
25-
<a href="/author/{{ a.name | replace(" ", "") }}">{{ a.name }}</a>
26-
</p>
24+
<h3>{{ a.name }} (<a href="/author/{{ a.name | replace(" ", "") }}">view bio</a>)</h3>
25+
26+
<ul>
27+
{% for linkId in file.data.authorsMap[a.name | replace(" ", "")].tutorials %}
28+
<li>
29+
<a href="/{{ file.data.linkMap.get(linkId) }}">{{ file.data.linkTitleMap.get(file.data.linkMap.get(linkId)) }}</a>
30+
</li>
31+
{% endfor %}
32+
</ul>
2733
{% endfor %}
2834

2935
</div>

0 commit comments

Comments
 (0)