fix: comment counter link & html language attribute
This commit is contained in:
parent
f956c60839
commit
ba47cdc7bf
|
@ -1,9 +1,9 @@
|
|||
<% if (post.comments) { %>
|
||||
<% if (theme.comment.disqus) { %>
|
||||
<a href="<%- post.permalink %>#comments" class="article-comment-link disqus-comment-count" data-disqus-url="<%= post.permalink %>"><%= __('article.comments') %></a>
|
||||
<a href="<%- url_for(post.permalink) %>#comments" class="article-comment-link disqus-comment-count" data-disqus-url="<%= url_for(post.permalink) %>"><%= __('article.comments') %></a>
|
||||
<% } else if (theme.comment.duoshuo) { %>
|
||||
<a href="<%- post.permalink %>#comments" class="article-comment-link ds-thread-count" data-thread-key="<%= post.path %>"><%= __('article.comments') %></a>
|
||||
<a href="<%- url_for(post.permalink) %>#comments" class="article-comment-link ds-thread-count" data-thread-key="<%= post.path %>"><%= __('article.comments') %></a>
|
||||
<% } else if (theme.comment.youyan) { %>
|
||||
<a href="<%- post.permalink %>#comments" class="article-comment-link"><%= __('article.comments') %></a>
|
||||
<a href="<%- url_for(post.permalink) %>#comments" class="article-comment-link"><%= __('article.comments') %></a>
|
||||
<% } %>
|
||||
<% } %>
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="<%=config.language.substring(0, 2) %>">
|
||||
<html<%= config.language ? " lang=" + config.language.substring(0, 2) : ""%>>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<%
|
||||
|
|
Loading…
Reference in New Issue