Skip to content

Commit c7b63af

Browse files
committed
clean-up rendered whitespace
1 parent 7524de1 commit c7b63af

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

themes/vocabulary_theme/templates/blog-post.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<h4>CC Open Source Blog</h4>
1313
<h2 class="title">{{ this.title }}</h2>
1414
<div class="author columns is-marginless">
15-
{{ render_author_gravatar(this) }}
15+
{{ render_author_gravatar(this)|trim }}
1616
<p class="padding-small">
17-
{{ render_authors_byline(this) }}
17+
{{ render_authors_byline(this)|trim }}
1818
</p>
1919
</div>
2020
{% if this.series|length %}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
{% from "macros/author_name.html" import render_author_name %}
22

33
{% 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") }}
2018
{% endmacro %}

0 commit comments

Comments
 (0)