Fixed post source being a link when it shouldn't

This commit is contained in:
Marcin Kurczewski 2014-09-27 11:02:15 +02:00
parent 3da8d2c233
commit d78da4769a

View file

@ -84,12 +84,17 @@
<% } %> <% } %>
<% if (post.source) { %> <% if (post.source) { %>
<li> <li><!--
Source:&nbsp;<!-- --><% var link = post.source.match(/^(\/\/|https?:\/\/)/); %><!--
--><a href="<%= post.source %>"><!-- -->Source:&nbsp;<!--
--><%= post.source.trim() %> --><% if (link) { %><!--
</a> --><a href="<%= post.source %>"><!--
</li> --><% } %><!--
--><%= post.source.trim() %><!--
--><% if (link) { %><!--
--></a><!--
--><% } %><!--
--></li>
<% } %> <% } %>
</ul> </ul>