7
7
{% set author = this.parent.parent.children.get('authors').children.get(this.author) %}
8
8
9
9
{% block body %}
10
- < div class ="single-entry ">
11
- < div class ="single-entry -header ">
10
+ < div class ="single-post ">
11
+ < header class ="single-post -header ">
12
12
< div class ="container ">
13
13
< h4 > CC Open Source Blog</ h4 >
14
14
< h2 class ="title "> {{ this.title }}</ h2 >
@@ -22,40 +22,19 @@ <h2 class="title">{{ this.title }}</h2>
22
22
< p class ="column "> by < a href ="{{ author|url }} "> {{ render_author_name(author) }}</ a >
23
23
on {{ this.pub_date|dateformat('yyyy-''MM-d') }}</ p >
24
24
</ div >
25
- </ div >
26
- </ div >
27
- < div class ="single-entry-body container ">
28
- <!-- TODO: This section to be discussed -->
29
- {% if this.series|length %}
30
- {% set series = this.parent.parent.children.get('series').children.get(this.series) %}
31
- < div class ="card bg-light mb-2 ">
32
- < div class ="card-body p-2 ">
33
- < p class ="meta my-0 "> < span class ="mr-2 "> < strong > This blog is part of the series:</ strong > </ span >
34
- < a href ="#series "> {{ series.name }}</ a >
35
- </ p >
25
+ {% if this.series|length %}
26
+ {% set series = this.parent.parent.children.get('series').children.get(this.series) %}
27
+ < div class ="series-header ">
28
+ < span > This blog is part of the series:</ span >
29
+ < a href ="#series "> {{ series.name }}</ a >
36
30
</ div >
31
+ {% endif %}
37
32
</ div >
38
- {% endif %}
39
- < div class ="body "> {{ this.body }}</ div >
33
+ </ header >
34
+ < div class ="single-post-body container ">
35
+ {{ this.body }}
40
36
</ div >
41
- < div class ="single-entry-footer container ">
42
- <!-- TODO: This section to be discussed -->
43
- {% if this.series|length %}
44
- < div class ="mt-3 bg-light " id ="series ">
45
- < h5 class ="font-weight-bold "> Posts in the < em > {{ series.name }}</ em > series</ h5 >
46
- < ul class ="toc list-unstyled ">
47
- {% for post in series.children.order_by('pub_date') %}
48
- < li >
49
- {% if post.path==this.path %}
50
- < strong > {{ post.title }}</ strong >
51
- {% else %}
52
- < a href ="{{ post|url }} "> {{ post.title }}</ a >
53
- {% endif %}
54
- </ li >
55
- {% endfor %}
56
- </ ul >
57
- </ div >
58
- {% endif %}
37
+ < footer class ="single-post-footer container ">
59
38
< div class ="category ">
60
39
< h4 class ="category-title "> Categories</ h4 >
61
40
< div class ="categories ">
@@ -70,7 +49,33 @@ <h4 class="category-title">Categories</h4>
70
49
{% endif %}
71
50
</ div >
72
51
</ div >
73
- </ div >
52
+ <!-- {% if this.series|length %}
53
+ <div class="mt-3 bg-light" id="series">
54
+ <h5 class="font-weight-bold">Posts in the <em>{{ series.name }}</em> series</h5>
55
+ <ul class="toc list-unstyled">
56
+ {% for post in series.children.order_by('pub_date') %}
57
+ <li>
58
+ {% if post.path==this.path %}
59
+ <strong>{{ post.title }}</strong>
60
+ {% else %}
61
+ <a href="{{ post|url }}">{{ post.title }}</a>
62
+ {% endif %}
63
+ </li>
64
+ {% endfor %}
65
+ </ul>
66
+ </div>
67
+ {% endif %} -->
68
+ < div class ="series-posts " id ="series ">
69
+ < h5 class ="title "> Posts in the {{ series.name }} series</ h5 >
70
+ < ul class ="posts ">
71
+ {% for post in series.children.order_by('pub_date') %}
72
+ < li >
73
+ < i class ="icon circle-filled "> </ i > < a href ="{{ post|url }} "> {{ post.title }}</ a >
74
+ </ li >
75
+ {% endfor %}
76
+ </ ul >
77
+ </ div >
78
+ </ footer >
74
79
</ div >
75
80
76
81
< div class ="comments "> {{ render_disqus_comments() }}</ div >
0 commit comments