-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbig-post-tile.html
More file actions
52 lines (52 loc) · 2.52 KB
/
big-post-tile.html
File metadata and controls
52 lines (52 loc) · 2.52 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
{% assign assets = include.post.path | remove: "_posts/" | remove: ".md" %}
<div class="big-post-tile">
<a href="{{ include.post.url }}">
<img class="big-post-image" src="{{include.post.image}}" alt="postimage"/>
</a>
<div class="big-post-tile-content">
{% assign author = site.authors | where: "short_name", include.post.author | first %}
{% assign coauthor = site.authors | where: "short_name", include.post.coauthor | first %}
<div class="badge-panel">
<div class="badge">{{ include.post.tags[0] }}</div>
</div>
<a href="{{ include.post.url }}">
<h2 class="no-breaking-word">
{{ include.post.title }}
</h2>
</a>
<p class="big-post-tile-post-description no-breaking-word">
{% if include.post.description %}
{{include.post.description}}
{% else %}
{{include.post.content | strip_html | truncatewords: 50}}
{% endif %}
</p>
<div class="tile-author">
{%- if include.post.coauthor -%}
<div class="authors-container">
<a href="{{ author.url }}" class="author-name author-img">
<img class="small-author-image" src="/assets/img/authors/{{author.image}}" alt="author">
</a>
<a href="{{ coauthor.url }}" class="author-name coauthor author-img">
<img class="small-author-image" src="/assets/img/authors/{{coauthor.image}}" alt="coauthor">
</a>
</div>
<div class="post-info">
<div>
<a href="{{ coauthor.url }}" class="author-name">{{author.name | split: ' ' | first}},</a>
<a href="{{ author.url }}" class="author-name">{{coauthor.name | split: ' ' | first}}</a>
</div>
<span class="post-date">{% include post-date.html date=include.post.date lang=site.active_lang short=true%}</span>
</div>
{%- else -%}
<a href="{{ author.url }}" class="author-name author-img">
<img class="small-author-image" src="/assets/img/authors/{{author.image}}" alt="author">
</a>
<div class="post-info">
<a href="{{ author.url }}" class="author-name">{{author.name}}</a>
<span class="post-date">{% include post-date.html date=include.post.date lang=site.active_lang short=true%}</span>
</div>
{%- endif -%}
</div>
</div>
</div>