File tree 2 files changed +16
-18
lines changed
themes/vocabulary_theme/templates
2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 12
12
< h4 > CC Open Source Blog</ h4 >
13
13
< h2 class ="title "> {{ this.title }}</ h2 >
14
14
< div class ="author columns is-marginless ">
15
- {{ render_author_gravatar(this) }}
15
+ {{ render_author_gravatar(this)|trim }}
16
16
< p class ="padding-small ">
17
- {{ render_authors_byline(this) }}
17
+ {{ render_authors_byline(this)|trim }}
18
18
</ p >
19
19
</ div >
20
20
{% if this.series|length %}
Original file line number Diff line number Diff line change 1
1
{% from "macros/author_name.html" import render_author_name %}
2
2
3
3
{% macro render_authors_byline(post) %}
4
- {% if post.author|length %}
5
- {% for author in post.author %}
6
- {% set author_loop = loop %}
7
- {% set current_author = post.parent.parent.children.get('authors').children.get(author) %}
8
- {% if author_loop.first %}by{% else %},{% endif %}
9
- {% if current_author %}
10
- {{ check_file('content' + post.parent.parent.path + '/authors/' + author + '/contents.lr') }}
11
- < a class ="author-name " href ="{{ current_author|url }} ">
12
- {{ render_author_name(current_author) }}
13
- </ a >
14
- {% else %}
15
- {{ author }}
16
- {% endif %}
17
- {% endfor %}
18
- {% endif %}
19
- on {{ post.pub_date|dateformat("YYYY-MM-dd") }}</ span>
4
+ {%- if post.author|length %}
5
+ {%- for author in post.author %}
6
+ {%- set author_loop = loop %}
7
+ {%- set current_author = post.parent.parent.children.get('authors').children.get(author) %}
8
+ {%- if author_loop.first %}by{% else %},{% endif %}
9
+ {%- if current_author %}
10
+ {{- check_file('content' + post.parent.parent.path + '/authors/' + author + '/contents.lr') }}
11
+ {{- ' ' }}< a class ="author-name " href ="{{ current_author|url }} "> {{ render_author_name(current_author)|trim }}</ a >
12
+ {%- else %}
13
+ {{- author }}
14
+ {%- endif %}
15
+ {%- endfor %}
16
+ {%- endif %}
17
+ {{- ' ' }}on {{ post.pub_date|dateformat("YYYY-MM-dd") }}
20
18
{% endmacro %}
You can’t perform that action at this time.
0 commit comments