mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
- Added title attributes to links in multiple layout files to improve accessibility and SEO. - Updated the configuration file to add new excluded domains. - Improved the readability and user experience of various sections on the page.
28 lines
989 B
Plaintext
28 lines
989 B
Plaintext
<%
|
|
var pageId = page.path;
|
|
var pageUrl = page.permalink;
|
|
var pageTitle = page.title;
|
|
%>
|
|
|
|
<% if (theme.disqus_shortname && page.comments){ %>
|
|
<section id="comment">
|
|
<div id="disqus_thread"></div>
|
|
<script>
|
|
var disqus_config = function () {
|
|
this.page.url = '<%= pageUrl %>';
|
|
this.page.identifier = '<%= pageId %>';
|
|
};
|
|
(function () {
|
|
var d = document,
|
|
s = d.createElement('script');
|
|
s.src = '//<%= theme.disqus_shortname %>.disqus.com/embed.js';
|
|
s.setAttribute('_data-timestamp', +new Date());
|
|
(d.head || d.section).appendChild(s);
|
|
})();
|
|
</script>
|
|
<noscript>Please enable JavaScript to view the
|
|
<a href="https://disqus.com/?ref_noscript" rel="external nofollow" title="Disqus - comments powered by Disqus">comments powered by Disqus.</a>
|
|
</noscript>
|
|
</section>
|
|
<% } %>
|