-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathpost.html
More file actions
83 lines (75 loc) · 2.8 KB
/
post.html
File metadata and controls
83 lines (75 loc) · 2.8 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
layout: default
type: article
---
<div class='post'>
<div class='current-article'>
{% if page.hero-image %}
<img class='post-hero' src='{{ site.baseurl }}/images/posts/{{page.hero-image}}' />
{% endif %}
<section class='section article'>
{% if page.caption %}
<span class='caption'>{{ page.caption }}</span>
{% endif %}
<article>
<div class="title-section center">
<h2 class='text-l news-title no-border'>{{ page.title }}</h2>
{% if page.author-id %}
{% assign people-pages = site.pages %}
{% assign page_author-id = page.author-id %}
{% for people in people-pages %}
{% if people.id == page_author-id %}
{% assign author_name = people.member-name %}
{% break %}
{% endif %}
{% endfor %}
{% endif %}
{% assign formatted_date = page.date | date: "%b %-d, %Y" %}
{% if author_name %}
<div class='author d-iblock'>
<a class='link author-img-link' href="{{ site.baseurl }}/people/{{page.author-id}}">
<img class='author-img' src='{{ site.baseurl }}/images/people/{{page.author-id}}.jpg' alt='Portrait of {{author_name}}' />
</a>
<span class='text-xxs author-name'>
<a class='link' href="{{ site.baseurl }}/people/{{page.author-id}}">
{{author_name}}
</a> · {{ formatted_date }}
</span>
</div>
{% elsif page.author-name %}
<div class='author d-iblock'>
<span class='text-xxs author-name'>{{page.author-name}} · {{ formatted_date }}</span>
</div>
{% else %}
<div class='author d-iblock'>
<span class='text-xxs author-name'>{{ formatted_date }}</span>
</div>
{% endif %}
</div>
<div class='text-xxs content-text generated-content'>
{{ content }}
</div>
</article>
</section>
</div>
<section class="section news bottom-layout" id='news'>
<div class='section-title'>
<h2 class='header text-xl recent-post-header'>All Posts by This Author</h2>
</div>
<div class='news-content formatted-text'>
<ul>
{% for post in site.posts %}
{% if post.categories == page.categories %}
<li class='news-list-item '>
<span class='text-xs news-date'>{{ post.date | date: "%m/%d/%Y"}}</span>
<a class='text-l news-title link' href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a>
</li>
{% endif %}
{% endfor %}
<li>
<a class='text-l all link' href="{{site.baseurl}}/news">View All Posts...</a>
</li>
</ul>
</div>
</section>
</div>