-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathseries.html
More file actions
40 lines (31 loc) · 1.76 KB
/
series.html
File metadata and controls
40 lines (31 loc) · 1.76 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
---
layout: default
---
<article class="series">
<header class="post-header">
<div class="back"><a href="/series/">Series</a> /</div>
{% assign title = page.title | markdownify | remove: '<p>' | remove: '</p>' | split: ": " %}
<h1 class="post-title">{% if page.category or page.subcat %}{% include content_icon.html subcat=page.subcat category=page.category %}{% endif %}{{ title[0] }}{% if title[1] %}<span style="color:transparent">: </span><br /><span style="font-size:85%">{{ title[1] }}</span>{% endif %}</h1>
{% if page.authors.size > 0 %}<h2 class="author">By {% include content_authors_string.html content=page hide_reader=true link=true %}</h2>{% endif %}
{% if page.publisher %}<h2>Published by {% assign publisher = site.publishers | find: "slug", page.publisher %}{% if publisher %}<a href="{{ publisher.url }}">{{ publisher.title }}</a>{% else %}{{ page.publisher }}{% endif %}</h2>{% endif %}
{% if page.external_url %}
{%- comment -%}buggytrack.js uses the fact that these are h3{%- endcomment -%}
<h3>Get the whole series <a target="_blank" ga-event-value="0.3" href="{{ page.external_url }}">online here</a>.</h3>
{% endif %}
</header>
<div class="post-content">
{{ content }}
<h4>In the library:</h4>
{% assign series = site.content | where: "series", page.slug %}
{% include numbered_content_list.html contents=series %}
{% assign tags = '' | split: '' %}
{% for t in page.tags %}
{% assign tag = site.tags | where: "status", "published" | find: "slug", t %}
{% if tag %}
{% capture taglink %}<a href="{{ tag.url }}">{{ tag.title }}</a>{% endcapture %}
{% assign tags = tags | push: taglink %}
{% endif %}
{% endfor %}
{% if tags.size > 0 %}<p class="content_tags">Tags: {{ tags | array_to_sentence_string }}.</p>{% endif %}
</div>
</article>