Fixed post source being a link when it shouldn't
This commit is contained in:
parent
3da8d2c233
commit
d78da4769a
1 changed files with 11 additions and 6 deletions
|
@ -84,12 +84,17 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<% if (post.source) { %>
|
<% if (post.source) { %>
|
||||||
<li>
|
<li><!--
|
||||||
Source: <!--
|
--><% var link = post.source.match(/^(\/\/|https?:\/\/)/); %><!--
|
||||||
|
-->Source: <!--
|
||||||
|
--><% if (link) { %><!--
|
||||||
--><a href="<%= post.source %>"><!--
|
--><a href="<%= post.source %>"><!--
|
||||||
--><%= post.source.trim() %>
|
--><% } %><!--
|
||||||
</a>
|
--><%= post.source.trim() %><!--
|
||||||
</li>
|
--><% if (link) { %><!--
|
||||||
|
--></a><!--
|
||||||
|
--><% } %><!--
|
||||||
|
--></li>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue