1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2024-11-22 16:20:11 +00:00

Themes: Modern: Use filt.link convenience method.

This commit is contained in:
devlinjd 2015-11-21 09:29:46 -05:00
parent 36ad9e2b7e
commit 16b61c6155

View File

@ -152,11 +152,7 @@ engine: Underscore
<span class="fa fa-lg fa-pencil"></span> <span class="fa fa-lg fa-pencil"></span>
{% r.writing.forEach( function( pub, idx, ar) { %} {% r.writing.forEach( function( pub, idx, ar) { %}
<h4> <h4>
{% if( pub.url ) { %} <span class="res-label">{{ filt.link(pub.title, pub.url) }}</span>&nbsp;{{ pub.publisher }}
<span class="res-label"><a href="{{ pub.link[0].url }}" ></span>{{ pub.title }}</a>,&nbsp;{{ pub.publisher }}
{% } else { %}
<span class="res-label">{{ pub.name }}</span>,&nbsp;{{ pub.publisher }}
{% } %}
</h4> </h4>
<span class="tenure">Published on: {{ pub.safe.date.format('YYYY-MM') }}</span> <span class="tenure">Published on: {{ pub.safe.date.format('YYYY-MM') }}</span>