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) { %>
|
||||
<li>
|
||||
Source: <!--
|
||||
--><a href="<%= post.source %>"><!--
|
||||
--><%= post.source.trim() %>
|
||||
</a>
|
||||
</li>
|
||||
<li><!--
|
||||
--><% var link = post.source.match(/^(\/\/|https?:\/\/)/); %><!--
|
||||
-->Source: <!--
|
||||
--><% if (link) { %><!--
|
||||
--><a href="<%= post.source %>"><!--
|
||||
--><% } %><!--
|
||||
--><%= post.source.trim() %><!--
|
||||
--><% if (link) { %><!--
|
||||
--></a><!--
|
||||
--><% } %><!--
|
||||
--></li>
|
||||
<% } %>
|
||||
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue