Merge pull request #113 from ppoffice/dev
fix: comment counter link & html language attributepull/116/head
commit
d9b2d37c6b
|
@ -1,9 +1,9 @@
|
||||||
<% if (post.comments) { %>
|
<% if (post.comments) { %>
|
||||||
<% if (theme.comment.disqus) { %>
|
<% 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) { %>
|
<% } 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) { %>
|
<% } 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>
|
<!DOCTYPE html>
|
||||||
<html lang="<%=config.language.substring(0, 2) %>">
|
<html<%= config.language ? " lang=" + config.language.substring(0, 2) : ""%>>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<%
|
<%
|
||||||
|
|
Loading…
Reference in New Issue