File tree Expand file tree Collapse file tree 6 files changed +88
-17
lines changed
themes/vocabulary_theme/templates Expand file tree Collapse file tree 6 files changed +88
-17
lines changed Original file line number Diff line number Diff line change 1
1
{% extends "layout.html" %}
2
+
2
3
{% from "macros/categories.html" import render_categories %}
3
- {% block title %}{{ this.parent.children.get('entries').title }}{% endblock %}
4
- {% block header %}{{ this.parent.children.get('entries').title }}{% endblock %}
4
+
5
5
{% block body %}
6
- < h2 > Categories</ h2 >
7
- {{ render_categories(this) }}
6
+ < div class ="all-categories ">
7
+ < div class ="title ">
8
+ < h1 class ="container "> Categories</ h1 >
9
+ </ div >
10
+ < div class ="categories-list container ">
11
+ {{ render_categories(this) }}
12
+ </ div >
13
+ </ div >
8
14
{% endblock %}
Original file line number Diff line number Diff line change 1
1
{% extends "layout.html" %}
2
- {% from "macros/categories.html" import render_categories %}
3
- {% block title %}{{ this.parent.children.get('entries').title }}{% endblock %}
4
- {% block header %}{{ this.parent.children.get('entries').title }}{% endblock %}
2
+
3
+ {% from "macros/series.html" import render_series %}
4
+
5
5
{% block body %}
6
- < h2 > All Series</ h2 >
7
- {{ render_categories(this) }}
6
+ < div class ="all-series ">
7
+ < div class ="title ">
8
+ < h1 class ="container "> All Series</ h1 >
9
+ </ div >
10
+ < div class ="series-list container ">
11
+ {{ render_series(this) }}
12
+ </ div >
13
+ </ div >
8
14
{% endblock %}
Original file line number Diff line number Diff line change 1
1
{% from "macros/posts.html" import render_posts %}
2
2
3
3
{% macro render_categories(categories) %}
4
- < ul class ="list-unstyled ">
5
4
{% for category in site.query(categories.path) %}
6
- < li > < a href ="{{ category|url }} "> {{ category.name }}</ a > </ li >
5
+ < a class =" button tag margin-vertical-small margin-horizontal-smaller " href ="{{ category|url }} "> {{ category.name }}</ a >
7
6
{% endfor %}
8
- </ ul >
9
7
{% endmacro %}
Original file line number Diff line number Diff line change 7
7
< article class ="card entry-post horizontal no-border blog-entry column is-one-third ">
8
8
< header >
9
9
< figure class ="image blog-image ">
10
- {% if author.about %}
11
- {% if author.md5_hashed_email %}
12
- < img class ="profile " src ="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200 "
13
- alt ="gravatar " />
10
+ {% if author.about %}
11
+ {% if author.md5_hashed_email %}
12
+ < img class ="profile " src ="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200 " alt ="gravatar " />
13
+ {% else %}
14
+ < img class ="profile " src ="./blank_profile.svg " alt ="gravatar " />
15
+ {% endif %}
14
16
{% endif %}
15
- {% endif %}
16
17
</ figure >
17
18
</ header >
18
19
< div class ="blog-content ">
Original file line number Diff line number Diff line change
1
+ {% from "macros/posts.html" import render_posts %}
2
+
3
+ {% macro render_series(series) %}
4
+ {% for serie in site.query(series.path) %}
5
+ < h4 class ="series-link "> < a class ="link " href ="{{ serie|url }} "> {{ serie.name }}</ a > </ h4 >
6
+ {% endfor %}
7
+ {% endmacro %}
Original file line number Diff line number Diff line change 264
264
@extend .padding-bottom-xxl ;
265
265
}
266
266
}
267
+
268
+ .all-series {
269
+ .title {
270
+ background-color : $color-lighter-gray ;
271
+
272
+ .container {
273
+ @extend .padding-horizontal-big ;
274
+ @extend .padding-bottom-xl ;
275
+ }
276
+ }
277
+
278
+ .series-list {
279
+ @extend .padding-horizontal-big ;
280
+ @extend .padding-top-xl ;
281
+ @extend .padding-bottom-xxl ;
282
+
283
+ .series-link {
284
+ .link {
285
+ @extend .has-color-dark-slate-gray ;
286
+ }
287
+
288
+ @extend .padding-bottom-big ;
289
+
290
+ & :not (:last-of-type )::after {
291
+ @extend .padding-top-big ;
292
+
293
+ display : block ;
294
+
295
+ content : ' ' ;
296
+
297
+ border-bottom : 0.1875rem solid $color-light-gray ;
298
+ }
299
+ }
300
+ }
301
+ }
302
+
303
+ .all-categories {
304
+ .title {
305
+ background-color : $color-lighter-gray ;
306
+ overflow-wrap : break-word ;
307
+
308
+ .container {
309
+ @extend .padding-horizontal-big ;
310
+ @extend .padding-bottom-xl ;
311
+ }
312
+ }
313
+
314
+ .categories-list {
315
+ @extend .padding-horizontal-big ;
316
+ @extend .padding-top-xl ;
317
+ @extend .padding-bottom-xxl ;
318
+ }
319
+ }
You can’t perform that action at this time.
0 commit comments