Skip to content

Commit

Permalink
fix: 加引号处理herf属性中空格导致的地址错误 (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
longguzzz authored Aug 1, 2022
1 parent 677b820 commit 2bb4043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_partial/article.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<blockquote>
<% (footer_widget.copyright.content||[]).forEach(function(row){ %>
<% if (row == 'permalink') { %>
<p><%- footer_widget.copyright.permalink %><a href=<%- decodeURI(page.permalink) %>><%- decodeURI(page.permalink) %></a></p>
<p><%- footer_widget.copyright.permalink %><a href="<%- decodeURI(page.permalink) %>"><%- decodeURI(page.permalink) %></a></p>
<% } else { %>
<%- markdown(row) %>
<% } %>
Expand Down

0 comments on commit 2bb4043

Please sign in to comment.