Repository navigation
Expand file tree
/
Copy pathpage.html
More file actions
56 lines (55 loc) · 1.95 KB
/
Copy pathpage.html
File metadata and controls
56 lines (55 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{%- extends "layout.html" %} {% set fa = ablog.fontawesome %} {%- block
extrahead %} {{ super() }} {% if feed_path %}
<link
rel="alternate"
type="application/atom+xml"
href="{{ pathto(feed_path, 1) }}/atom.xml"
title="{{ feed_title }}"
/>
{% endif %} {% if ablog.fontawesome_link_cdn %}
<link href="{{ ablog.fontawesome_link_cdn }}" rel="stylesheet" />
{% elif ablog.fontawesome_css_file %}
<link
rel="stylesheet"
href="{{ pathto('_static/' + ablog.fontawesome_css_file, 1) }}"
type="text/css"
/>
{% endif %} {% endblock extrahead %} {% block body %} {{ body }}
<div class="section ablog__blog_comments">
{% if pagename in ablog %} {% include "ablog/postnavy.html" %} {% endif %} {%
if ablog.disqus_shortname and ablog.blog_baseurl and (not
ablog[pagename].nocomments) and ((pagename in ablog and
(ablog[pagename].published or ablog.disqus_drafts)) or (not pagename in ablog
and ablog.disqus_pages)) %}
<div class="section ablog__comments">
<h2>Comments</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = "{{ ablog.disqus_shortname }}";
var disqus_identifier = "{{ablog.page_id(pagename)}}";
var disqus_title = "{{title|e}}";
var disqus_url = "{{ablog.page_url(pagename)}}";
(function () {
var dsq = document.createElement("script");
dsq.type = "text/javascript";
dsq.async = true;
dsq.src = "//" + disqus_shortname + ".disqus.com/embed.js";
(
document.getElementsByTagName("head")[0] ||
document.getElementsByTagName("body")[0]
).appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript">
comments powered by Disqus.</a
></noscript
>
<a href="https://disqus.com" class="dsq-brlink">
comments powered by <span class="logo-disqus">Disqus</span>
</a>
</div>
{% endif %}
</div>
{% endblock body %}