|
6 | 6 |
|
7 | 7 | {% set author = this.parent.parent.children.get('authors').children.get(this.author) %}
|
8 | 8 |
|
9 |
| -{% block title %}{{ this.title }}{% endblock %} |
10 |
| -{% block header %}{{ this.parent.title }}{% endblock %} |
11 | 9 | {% block body %}
|
12 |
| - <h2 class="mb-0">{{ this.title }}</h2> |
13 |
| - {{ check_file('content' + this.parent.parent.path + '/authors/' + this.author + '/contents.lr') }} |
14 |
| - <p class="meta text-muted mt-0 mb-2">by <a href="{{ author|url }}">{{ render_author_name(author) }}</a> |
15 |
| - on {{ this.pub_date|dateformat('EEEE, yyyy-''MM-d') }}</p> |
16 |
| - {% if this.series|length %} |
17 |
| - {% set series = this.parent.parent.children.get('series').children.get(this.series) %} |
18 |
| - <div class="card bg-light mb-2"> |
19 |
| - <div class="card-body p-2"> |
20 |
| - <p class="meta my-0"><span class="mr-2"><strong>This blog is part of the series:</strong></span> |
21 |
| - <a href="#series">{{ series.name }}</a> |
22 |
| - </p> |
23 |
| - </div> |
24 |
| - </div> |
25 |
| - {% endif %} |
26 |
| - <div class="body">{{ this.body }}</div> |
27 |
| - {% if this.series|length %} |
28 |
| - <div class="mt-3 bg-light" id="series"> |
29 |
| - <hr/> |
30 |
| - <h5 class="font-weight-bold">Posts in the <em>{{ series.name }}</em> series</h5> |
31 |
| - <ul class="toc list-unstyled"> |
32 |
| - {% for post in series.children.order_by('pub_date') %} |
33 |
| - <li> |
34 |
| - {% if post.path==this.path %} |
35 |
| - <strong>{{ post.title }}</strong> |
36 |
| - {% else %} |
37 |
| - <a href="{{ post|url }}">{{ post.title }}</a> |
| 10 | + <div class="single-post"> |
| 11 | + <header class="single-post-header"> |
| 12 | + <div class="container"> |
| 13 | + <h4>CC Open Source Blog</h4> |
| 14 | + <h2 class="title">{{ this.title }}</h2> |
| 15 | + {{ check_file('content' + this.parent.parent.path + '/authors/' + this.author + '/contents.lr') }} |
| 16 | + <div class="author columns is-marginless"> |
| 17 | + {% if author.md5_hashed_email %} |
| 18 | + <figure class="image profile"> |
| 19 | + <img src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200" alt="gravatar" class="profile" /> |
| 20 | + </figure> |
| 21 | + {% endif %} |
| 22 | + <p class="column">by <a href="{{ author|url }}">{{ render_author_name(author) }}</a> |
| 23 | + on {{ this.pub_date|dateformat('yyyy-''MM-d') }}</p> |
| 24 | + </div> |
| 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> |
| 30 | + </div> |
38 | 31 | {% endif %}
|
39 |
| - </li> |
40 |
| - {% endfor %} |
41 |
| - </ul> |
42 |
| - <hr/> |
43 |
| - </div> |
44 |
| - {% endif %} |
45 |
| - <div class="card bg-light"> |
46 |
| - <div class="card-body p-2"> |
47 |
| - <p class="meta my-0"><span class="mr-2"><strong>Categories:</strong></span> |
48 |
| - {% if this.categories|length %} |
49 |
| - {% for category in this.categories %} |
50 |
| - {% set current_category = this.parent.parent.children.get('categories').children.get(category) %} |
51 |
| - {{ check_file('content' + this.parent.parent.path + '/categories/' + category + '/contents.lr') }} |
52 |
| - <a href=" {{ current_category|url }} ">{{ category }}</a>{{ "," if not loop.last }} |
53 |
| - {% endfor %} |
54 |
| - {% else %} |
55 |
| - none |
56 |
| - {% endif %} |
57 |
| - </p> |
| 32 | + </div> |
| 33 | + </header> |
| 34 | + <div class="single-post-body container"> |
| 35 | + {{ this.body }} |
58 | 36 | </div>
|
| 37 | + <footer class="single-post-footer container"> |
| 38 | + <div class="category"> |
| 39 | + <h4 class="category-title">Categories</h4> |
| 40 | + <div class="categories"> |
| 41 | + {% if this.categories|length %} |
| 42 | + {% for category in this.categories %} |
| 43 | + {% set current_category = this.parent.parent.children.get('categories').children.get(category) %} |
| 44 | + {{ check_file('content' + this.parent.parent.path + '/categories/' + category + '/contents.lr') }} |
| 45 | + <a class="button tag" href=" {{ current_category|url }} ">{{ category }}</a> |
| 46 | + {% endfor %} |
| 47 | + {% else %} |
| 48 | + none |
| 49 | + {% endif %} |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + {% if this.series|length %} |
| 53 | + <div class="series-posts" id="series"> |
| 54 | + <h5 class="title">Posts in the {{ series.name }} series</h5> |
| 55 | + <ul class="posts"> |
| 56 | + {% for post in series.children.order_by('pub_date') %} |
| 57 | + <li> |
| 58 | + <i class="icon circle-filled"></i><a href="{{ post|url }}">{{ post.title }}</a> |
| 59 | + </li> |
| 60 | + {% endfor %} |
| 61 | + </ul> |
| 62 | + </div> |
| 63 | + {% endif %} |
| 64 | + <div class="comments">{{ render_disqus_comments() }}</div> |
| 65 | + </footer> |
59 | 66 | </div>
|
60 |
| - |
61 |
| - <div class="comments">{{ render_disqus_comments() }}</div> |
62 | 67 | {% endblock %}
|
0 commit comments