mirror of
https://github.com/JuanCanham/fresh-themes.git
synced 2024-12-23 05:17:22 +00:00
Themes: Modern: Use filt.link convenience method.
This commit is contained in:
parent
36ad9e2b7e
commit
16b61c6155
@ -152,11 +152,7 @@ engine: Underscore
|
||||
<span class="fa fa-lg fa-pencil"></span>
|
||||
{% r.writing.forEach( function( pub, idx, ar) { %}
|
||||
<h4>
|
||||
{% if( pub.url ) { %}
|
||||
<span class="res-label"><a href="{{ pub.link[0].url }}" ></span>{{ pub.title }}</a>, {{ pub.publisher }}
|
||||
{% } else { %}
|
||||
<span class="res-label">{{ pub.name }}</span>, {{ pub.publisher }}
|
||||
{% } %}
|
||||
<span class="res-label">{{ filt.link(pub.title, pub.url) }}</span> {{ pub.publisher }}
|
||||
</h4>
|
||||
<span class="tenure">Published on: {{ pub.safe.date.format('YYYY-MM') }}</span>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user