Skip to content

Commit

Permalink
fix for emails in topic summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Jun 23, 2020
1 parent cd1ed8c commit 788ad47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _includes/topic-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
{% endfor %}
{% endunless %}
{% if email %}
{{ author.name }} <a href="{{ email }}" title='{{ email | remove: "mailto:" }}'><span>{{ email | remove: "mailto:" }}</span></a>{% unless forloop.last %}, {% endunless %}
{% assign email = email | remove: "mailto:" %}
{{ author.name }} <a href="mailto:{{ email }}" title='{{ email }}'><span>{{ email }}</span></a>{% unless forloop.last %}, {% endunless %}
{% else %}
{{ author.name }}{% unless forloop.last %}, {% endunless %}
{% endif %}
Expand All @@ -54,9 +55,10 @@
{% endfor %}
{% endunless %}
{% if email %}
{% assign email = email | remove: "mailto:" %}
<p class="card-line">
<b>Contact:</b> {{ author.name }}
<a href="{{ email }}" title='{{ email | remove: "mailto:" }}'><span>{{ email | remove: "mailto:" }}</span></a>
<a href="mailto:{{ email }}" title='{{ email }}'><span>{{ email }}</span></a>
</p>
{% endif %}
{% endif %}

0 comments on commit 788ad47

Please sign in to comment.