File tree Expand file tree Collapse file tree 4 files changed +101
-23
lines changed
themes/vocabulary_theme/templates Expand file tree Collapse file tree 4 files changed +101
-23
lines changed Original file line number Diff line number Diff line change 22
33{% from "macros/authors.html" import render_authors %}
44
5- {% block title %}{{ this.parent.children.get('entries').title + ' - Authors' }}{% endblock %}
6- {% block header %}{{ this.parent.children.get('entries').title }}{% endblock %}
75{% block body %}
8- < h2 > Authors</ h2 >
9- {{ render_authors(this) }}
6+ < div class ="all-authors ">
7+ < div class ="title ">
8+ < h1 class ="container "> Authors</ h1 >
9+ </ div >
10+ < div class ="authors-list container ">
11+ < div class ="columns is-multiline is-mobile ">
12+ {{ render_authors(this) }}
13+ </ div >
14+ </ div >
15+ </ div >
1016{% endblock %}
Original file line number Diff line number Diff line change 11{% from "macros/author_name.html" import render_author_name %}
22
33{% macro render_authors(authors) %}
4- < ul class ="list-unstyled ">
5- {% for author in site.query(authors.path) %}
6- < li > < a href ="{{ author|url }} "> {{ render_author_name(author) }}</ a > </ li >
7- {% endfor %}
8- </ ul >
4+ {% for author in site.query(authors.path) %}
5+ < div class ="author column is-6-mobile is-2-desktop ">
6+ {% if author.md5_hashed_email %}
7+ < figure class ="image profile ">
8+ < img class ="profile " src ="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200 " alt ="gravatar " />
9+ </ figure >
10+ {% else %}
11+ < figure class ="image profile ">
12+ < img class ="profile " src ="./blank_profile.svg " alt ="gravatar " />
13+ </ figure >
14+ {% endif %}
15+ < div class ="author-name ">
16+ < h4 class ="desktop b-header "> < a class ="link " href ="{{ author|url }} "> {{ render_author_name(author) }}</ a > </ h4 >
17+ < h6 class ="mobile b-header "> < a class ="link " href ="{{ author|url }} "> {{ render_author_name(author) }}</ a > </ h6 >
18+ </ div >
19+ </ div >
20+ {% endfor %}
921{% endmacro %}
Original file line number Diff line number Diff line change 5050 }
5151}
5252
53+ .breadcrumb-container {
54+ border-top : 4px solid $color-forest-green ;
55+ background-color : $color-lighter-gray ;
56+
57+ .breadcrumb {
58+ @extend .padding-bigger ;
59+
60+ .link {
61+ @extend .has-color-forest-green ;
62+ }
63+ }
64+ }
65+
5366.hero {
5467 @extend .margin-top-large ;
5568
179192 }
180193}
181194
182- .breadcrumb-container {
183- border-top : 4px solid $color-forest-green ;
184- background-color : $color-lighter-gray ;
185-
186- .breadcrumb {
187- @extend .padding-bigger ;
188-
189- .link {
190- @extend .has-color-forest-green ;
191- }
192- }
193- }
194-
195195.blog-entries {
196196 .blog-entry {
197197 @extend .padding-vertical-larger ;
232232 }
233233}
234234
235-
236235.single-post {
237236 .container {
238237 @extend .padding-horizontal-xxl ;
407406 }
408407}
409408
409+ .all-authors {
410+ .title {
411+ background-color : $color-lighter-gray ;
412+
413+ .container {
414+ @extend .padding-horizontal-big ;
415+ @extend .padding-bottom-xl ;
416+ }
417+ }
418+
419+ .authors-list {
420+ @extend .padding-horizontal-big ;
421+ @extend .padding-top-xl ;
422+ @extend .padding-bottom-xxl ;
423+ }
424+
425+ .author {
426+ @extend .padding-big ;
427+
428+ .image {
429+ height : 3.75rem ;
430+ width : 3.75rem ;
431+ }
432+
433+ .mobile {
434+ display : none ;
435+ }
436+
437+ .desktop {
438+ display : inline ;
439+ }
440+
441+ @media only screen and (max-width : 768px ) {
442+ .mobile {
443+ display : inline ;
444+ }
445+ .desktop {
446+ display : none ;
447+ }
448+ }
449+
450+ .author-name {
451+ @extend .padding-top-small ;
452+
453+ .link {
454+ @extend .has-color-dark-slate-gray ;
455+ }
456+ }
457+ }
458+ }
459+
410460.code-guidelines {
411461 .code-guidelines-title {
412462 background-color : $color-lighter-gray ;
You can’t perform that action at this time.
0 commit comments