-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblogpost.twig
More file actions
39 lines (29 loc) · 963 Bytes
/
Copy pathblogpost.twig
File metadata and controls
39 lines (29 loc) · 963 Bytes
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
{% extends "blog.twig" %}
{% block blogcontent %}
<article>
<h1>{{ title }}</h1>
<p class="article-information">
Posted by {{ author }} on {{ date }}
</p>
{{ content|raw }}
</article>
<h3>
Comments
</h3>
<div id="disqus_thread"></div>
<noscript>
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>
</noscript>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
// Disqus comments
var disqus_shortname = 'phpdi';
(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>
{% endblock %}