-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathperson.html
executable file
·55 lines (49 loc) · 1.48 KB
/
person.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: default
---
{% if page.ext == ".html" %}
<section class="layout--stripe {% if page.classes %}{{ page.classes }}{% endif %}">
<div class="layout--stripe--inner">
{{ content }}
</div>
</section>
{% else %}
<section class="layout--stripe markdownified {% if page.classes %}{{ page.classes }}{% endif %}">
<div class="layout--stripe--inner">
{{ content }}
</div>
</section>
{% endif %}
{% capture where_exp_str %}item.authors contains page.slug{% endcapture %}
{% assign posts = site.posts | where_exp:"item", where_exp_str %}
<section class="layout--stripe text-align--center">
<div class="layout--stripe--inner">
{% include atoms/heading.html
children="This author's blog posts"
classes=""
level="2"
%}
{% include atoms/spacer.html size="2" %}
{% if posts[0] %}
<ul class="list-style--none layout--multiple--horizontal">
{% for post in posts %}
{% include molecules/card.html
entity=post
%}
{% endfor %}
</ul>
{% else %}
<p class="listing--no-results">This person has not authored any posts on this site yet.</p>
{% endif %}
</div>
</section>
<section class="layout--stripe background-color--white">
<div class="layout--stripe--inner">
{% include atoms/heading.html
children="Navigate to other people"
classes="a11y--visually-hidden"
level="2"
%}
{% include molecules/prev-next.html entity=page %}
</div>
</section>