2
2
3
3
{% from "macros/author_name.html" import render_author_name %}
4
4
5
+ {% from "macros/posts.html" import render_posts %}
6
+
5
7
{% set author = this.parent.parent.children.get('authors').children.get(this.author) %}
6
8
9
+ {% set series = this.parent.parent.children.get('series').children.get(this.series) %}
10
+
7
11
{% block title %}{{ this.title }}{% endblock %}
8
12
{% block header %}{{ this.parent.title }}{% endblock %}
9
13
{% block body %}
10
14
< h2 class ="mb-0 "> {{ this.title }}</ h2 >
15
+ {{ check_file('content' + this.parent.parent.path + '/authors/' + this.author + '/contents.lr') }}
16
+ < p class ="meta text-muted mt-0 mb-2 "> by < a href ="{{ author|url }} "> {{ render_author_name(author) }}</ a >
17
+ on {{ this.pub_date|dateformat('EEEE, yyyy-''MM-d') }}</ p >
11
18
{% if this.series|length %}
12
- < div class ="card bg-light ">
19
+ < div class ="card bg-light mb-2 ">
13
20
< div class ="card-body p-2 ">
14
- < p class ="meta my-0 "> < span class ="mr-2 "> < strong > This blog is part of the series :</ strong > </ span >
15
- < a href ="/blog/ series/{{this.series}}/ "> {{ this.series }}</ a >
21
+ < p class ="meta my-0 "> < span class ="mr-2 "> < strong > This blog is part of the series:</ strong > </ span >
22
+ < a href ="# series "> {{ this.series }}</ a >
16
23
</ p >
17
24
</ div >
18
25
</ div >
19
26
{% endif %}
20
-
21
- {{ check_file('content' + this.parent.parent.path + '/authors/' + this.author + '/contents.lr') }}
22
- < p class ="meta text-muted mt-0 "> by < a href ="{{ author|url }} "> {{ render_author_name(author) }}</ a >
23
- on {{ this.pub_date|dateformat('EEEE, yyyy-''MM-d') }}</ p >
24
27
< div class ="body "> {{ this.body }}</ div >
25
28
< div class ="card bg-light ">
26
29
< div class ="card-body p-2 ">
@@ -37,5 +40,30 @@ <h2 class="mb-0">{{ this.title }}</h2>
37
40
</ p >
38
41
</ div >
39
42
</ div >
43
+ {% if this.series|length %}
44
+ < table class ="table table-sm table-striped mt-3 " id ="series ">
45
+ < thead class ="thead-dark ">
46
+ < tr >
47
+ < th >
48
+ All posts under the Series "< span style ="font-size:1.15rem "> {{ this.series }}< span > "
49
+ </ th >
50
+ </ tr >
51
+ </ thead >
52
+ < tbody >
53
+ {% for post in series.children %}
54
+ {% set author = post.parent.parent.children.get('authors').children.get(post.author) %}
55
+ < tr >
56
+ < td >
57
+ < a href ="{{ post|url }} "> {{ post.title }}</ a >
58
+ < p class ="text-muted small "> by < a href ="{{ author|url }} "> {{ render_author_name(author) }}</ a >
59
+ on {{ post.pub_date|dateformat("YYYY-MM-dd") }}</ p >
60
+ </ td >
61
+ </ tr >
62
+ {% endfor %}
63
+ </ tbody >
64
+ </ table >
65
+ < hr >
66
+ Check out < strong > < a href ="/blog/series/ "> All Series</ a > </ strong >
67
+ {% endif %}
40
68
< div class ="comments "> {{ render_disqus_comments() }}</ div >
41
69
{% endblock %}
0 commit comments